views:

212

answers:

3

Hey guys, I'm trying to implement this in my iPhone app: http://code.google.com/p/core-plot/downloads/detail?name=alpharelease_0.1.zip&can=2&q=&sort=-uploaded . I figured I'd first try to run the sample they provide. I'm attempting to open and compile the project located in /Source/examples/CPTestApp-iPhone/ . It says my base SDK was missing right off of the bat, so I edited the Project settings and the Active Target to use the iOS4 SDK, which I've done before for samples and had work. I'm not sure what to do. I'm running one of the newest Unibody Macbooks, with 10.6.4.

Here is my full error:

// - start - //

Check dependencies

[BEROR]No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=i386, VALID_ARCHS=armv6 armv7).

// - end - //

Thoughts?

Thanks!

  • Josh
A: 

You have selected as active architecture "active arch=i386 (your Mac)" but the project compiles for " VALID_ARCHS=armv6 armv7 (iPhone Device)", try setting the right arch in the project settings, so it is built for iPhone as it should be.

Gauloises
The architecture plist entry only has i386 listed, it is not a dropdown like the Base SDK entry, so I'm not sure how to do that.
Josh
A: 

This project appears to pre-date iOS 4, so you need to open up the .xcodeproj file for the Core Plot library itself, too. It probably also has a broken reference to an old iOS Base SDK and may need the architectures updated.

Steve Madsen
I was opening the .xcodeproj file. I've not even tried to get this working in my app yet, I'm still trying to run their example. I have changed the SDK, since it said BASE SDK MISSING. I tried 3.2 and 4.0, but still get the error for both.
Josh
A: 

This happens all the time with old projects migrated to SDK 3.2/4.0. You have to open the target settings and change everything to SDK 4.0 or 3.2. You can still have the target OS be 3.0 if you want that. If it still says "missing SDK" you neglected to change one of those settings to 4.0 or 3.2.

fogelbaby