Note that there are some explanatory texts on larger screens.

plurals
  1. POCore-plot configuration error
    text
    copied!<p>I am trying to use core-plot and I followed the instruction from the following project page to use it.</p> <p><a href="http://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications" rel="nofollow">http://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications</a>, which is </p> <p>You can install the SDK with a standard Mac installer package, or by hand. Here is how you install by hand.</p> <ol> <li><p>Copy the CorePlotSDK directory to ~/Library/SDKs/</p></li> <li><p>Add to your project's .PCH file:</p> <p>#import &lt; CorePlot/CorePlot.h ></p></li> <li><p>Open Project -> Edit Project Settings and for All Configurations:</p></li> </ol> <p>3a. Add to Additional SDKS: $HOME/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk</p> <p>3b. Add to Other Linker Flags: -ObjC -all_load -lCorePlot</p> <ol> <li><p>Add the QuartzCore framework to the project.</p></li> <li><p>Add a CPGraph to your application.</p></li> </ol> <p>I went with the SDK install options: I installed it with Mac installer Package, it got installed in the following location /Library/SDKs/iphoneos.sdk and /Library/SDKs/iphonesimulator.sdk</p> <p>Then i did step 2 as mentioned.</p> <p><strong>For 3a i added /Library/SDKs/iphonesimulator.sdk</strong> </p> <p>Then i did 3b and then 4. </p> <p>After that I tried to do a build and see how does it works and i get the following errors:</p> <p>:1:0 :1:1: warning: "__IPHONE_OS_VERSION_MIN_REQUIRED" redefined</p> <p>:1:0 :1:1: warning: this is the location of the previous definition</p> <p>/var/folders/+r/+rBG+BziF1OqK12XNyw1ak+++TM/-Caches-/com.apple.Xcode.502/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-cztutytisanvsqaptkdkpoyyctln/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250:0 /var/folders/+r/+rBG+BziF1OqK12XNyw1ak+++TM/-Caches-/com.apple.Xcode.502/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-cztutytisanvsqaptkdkpoyyctln/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: syntax error before '^' token</p> <p>/var/folders/+r/+rBG+BziF1OqK12XNyw1ak+++TM/-Caches-/com.apple.Xcode.502/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-cztutytisanvsqaptkdkpoyyctln/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250:0 /var/folders/+r/+rBG+BziF1OqK12XNyw1ak+++TM/-Caches-/com.apple.Xcode.502/CompositeSDKs/iphonesimulator-iPhoneSimulator4.1-cztutytisanvsqaptkdkpoyyctln/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250: error: 'type name' declared as function returning a function</p> <p>This appears 20 times. and it points all to UIView.h </p> <p>There are same question in the stackoverflow and people suggested to change the compiler to 4.2 and for lot of people it worked, but for me the compiler was always set to 4.2 and still I get the same error.</p> <p><strong>On 3a if do /Library/SDKs/iphoneos.sdk</strong></p> <p>I get the following error</p> <p>error: Composite SDK failed: The base SDK uses platform 'iphonesimulator', but an additional SDK uses platform 'iphoneos'. All SDKs must use the same platform (PLATFORM_NAME).</p> <p>Please help</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload