安装CorePlot的问题

时间:2010-10-12 04:27:19

标签: iphone objective-c cocoa-touch core-plot

我尝试根据自述文件安装CorePlot,但是只要我在项目设置中将$HOME/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk添加到其他SDK ,就会出现大量编译错误,试图编译PCHs。

我已经按照其余的安装步骤继续看到头文件的这个问题,直到我从其他SDK中删除路径,此时构建开始再次运行,但当然我没有核心图。

我正在尝试使用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

2 个答案:

答案 0 :(得分:1)

README说明适用于桌面应用。按照here说明将CorePlot与iOS应用程序配合使用。

答案 1 :(得分:0)

我遇到了同样的问题但是当我将编译器更改为LLVM GCC 4.2时解决了问题。如果您阅读了here发布的说明,您会在下面的评论中看到有人遇到了与您相同的问题并以此方式解决了问题。