我試圖根據readme文件安裝CorePlot,但是一旦我在項目設置中添加$HOME/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk
到其他SDK我收到了大量編譯錯誤,試圖編譯PCH。安裝CorePlot的問題
我已經跟着安裝過程的其餘部分,我繼續看到這個問題的頭文件,直到我刪除從其他SDK的路徑再次建立開始工作,但當然我沒有coreplot。
我正在嘗試使用4.1 SDK。任何人有任何想法可能會發生什麼?
我做了一個「乾淨的所有」刪除舊的預編譯頭。
ProcessPCH /var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/MoodTracker_Prefix-bqgeoohlnqkqawgoyuyduudrndzd/MoodTracker_Prefix.pch.gch MoodTracker_Prefix.pch normal i386 objective-c com.apple.compilers.gcc.4_0
cd /Users/rjstone/Documents/iPhoneDev/checkout/MoodTracker
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -x objective-c-header -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D__IPHONE_OS_VERSION_MIN_REQUIRED=20000 -isysroot /var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -fexceptions -D__IPHONE_OS_VERSION_MIN_REQUIRED=40100 -iquote /Users/rjstone/Documents/iPhoneDev/checkout/MoodTracker/build/MoodTracker.build/Debug-iphonesimulator/MoodTracker.build/MoodTracker-generated-files.hmap -I/Users/rjstone/Documents/iPhoneDev/checkout/MoodTracker/build/MoodTracker.build/Debug-iphonesimulator/MoodTracker.build/MoodTracker-own-target-headers.hmap -I/Users/rjstone/Documents/iPhoneDev/checkout/MoodTracker/build/MoodTracker.build/Debug-iphonesimulator/MoodTracker.build/MoodTracker-all-target-headers.hmap -iquote /Users/rjstone/Documents/iPhoneDev/checkout/MoodTracker/build/MoodTracker.build/Debug-iphonesimulator/MoodTracker.build/MoodTracker-project-headers.hmap -F/Users/rjstone/Documents/iPhoneDev/checkout/MoodTracker/build/Debug-iphonesimulator -I/Users/rjstone/Documents/iPhoneDev/checkout/MoodTracker/build/Debug-iphonesimulator/include -I/Users/rjstone/Documents/iPhoneDev/checkout/MoodTracker/build/MoodTracker.build/Debug-iphonesimulator/MoodTracker.build/DerivedSources/i386 -I/Users/rjstone/Documents/iPhoneDev/checkout/MoodTracker/build/MoodTracker.build/Debug-iphonesimulator/MoodTracker.build/DerivedSources -c /Users/rjstone/Documents/iPhoneDev/checkout/MoodTracker/MoodTracker_Prefix.pch -o /var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/MoodTracker_Prefix-bqgeoohlnqkqawgoyuyduudrndzd/MoodTracker_Prefix.pch.gch
<command line>:1:1: warning: "__IPHONE_OS_VERSION_MIN_REQUIRED" redefined
<command line>:1:1: warning: this is the location of the previous definition
In file included from /var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h:10,
from /var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h:12,
from /var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:15,
from /var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10,
from /Users/rjstone/Documents/iPhoneDev/checkout/MoodTracker/MoodTracker_Prefix.pch:13:
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: syntax error before '^' token
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: 'type name' declared as function returning a function
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: syntax error before '^' token
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: 'type name' declared as function returning a function
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:252: error: syntax error before '^' token
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:252: error: 'type name' declared as function returning a function
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:252: error: syntax error before '^' token
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:252: error: 'type name' declared as function returning a function
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:254: error: syntax error before '^' token
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:254: error: 'type name' declared as function returning a function
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256: error: syntax error before '^' token
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256: error: 'type name' declared as function returning a function
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256: error: syntax error before '^' token
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256: error: 'type name' declared as function returning a function
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:258: error: syntax error before '^' token
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:258: error: 'type name' declared as function returning a function
In file included from /var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:13,
from /Users/rjstone/Documents/iPhoneDev/checkout/MoodTracker/MoodTracker_Prefix.pch:13:
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:190: error: syntax error before '^' token
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:190: error: 'type name' declared as function returning a function
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:193: error: syntax error before '^' token
/var/folders/ev/eviExAoOGuKhxqFgoqkgZE+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-fotsqlediwvmiughmkqdhijqmqsd/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:193: error: 'type name' declared as function returning a function
我下載了http://code.google.com/p/core-plot/downloads/detail?name=alpharelease_0.2.zip&can=2&q=它似乎沒有包含.xcodeproj文件但包含iphoneos .sdk iphonesimulator.sdk目錄。所以我對這個zip文件應該包含什麼有點困惑。我想我必須得到Mercurial並檢查源代碼才能完成這項工作? – Nimrod 2010-10-12 05:27:23
我剛剛在該鏈接下載了該文件,並且在Source/framework目錄中有一個CorePlot-CocoaTouch.xcodeproj。 – 2010-10-12 05:38:46
對不起,我想我已經下載了一個不包含源代碼的舊文件。無論如何,即使在我嘗試構建這些示例的源代碼中,我也會看到一堆:error:「__IPHONE_OS_VERSION_MIN_REQUIRED」 :錯誤:這是以前定義的位置 Command /開發人員/平臺/ iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失敗,退出代碼1錯誤。奇怪的是,如果我只是單獨構建xcodeproj,它的構建就很好。只有當它構建爲一個直接的依賴關係時纔會出現這個問題。 –
Nimrod
2010-10-12 05:56:14