Reputation: 5133
I attempt to install CorePlot according to the readme file, but as soon as I add $HOME/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk
to Additional SDKs in the project settings I get a massive spew of compile errors trying to compile the PCHs.
I've followed the rest of the install procedure and I continue to see this problem with header files until i remove the path from Additional SDKs at which point the build starts working again, but of course I have no coreplot.
I'm attempting to use the 4.1 SDK. Anyone have any idea what might be happening?
I have done a "clean all" deleting the old precompiled headers.
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
Upvotes: 1
Views: 873
Reputation: 477
I had the same problem and but when I changed the compiler to LLVM GCC 4.2 that solved the problem. If you read the instructions posted here you will see in the comments below that someone had the same issue as you did and solved it that way too.
Upvotes: 0
Reputation: 12112
The README instructions are for desktop apps. Follow the instructions here to use CorePlot with an iOS app.
Upvotes: 1