Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone Compiler Fails: No architectures to compile for

Tags:

I'm trying to implement the Cocoa plotting framework (Alpha Release 0.1) in my iPhone app.

I figured I'd first try to run the sample they provide. I attempted 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 the full error:

// - start - //  Check dependencies  [BEROR]No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=i386, VALID_ARCHS=armv6 armv7).  // - end - // 

Thoughts?

like image 305
Josh Avatar asked Aug 23 '10 16:08

Josh


2 Answers

I also went to the Build settings for the target(s) that failed and added "i386" to the valid architectures

like image 71
Robert Diamond Avatar answered Sep 21 '22 20:09

Robert Diamond


Try this:

Project Build Settings:

  • Architectures: Standard (armv6 armv7)
  • Base SDK: Latest iOS Build Active
  • Architectures Only: Checked Valid
  • Architectures: armv6 armv7

Delete any sub settings in the Architecture build setting.

Target Build Settings:

  • Same at project settings.

Frameworks Add the SystemConfiguration.framework to your project. - Not sure why this had any impact.

Clean all targets. Build for the simulator.

The long explanation for this can be found on our blog: http://longweekendmobile.com/2010/06/15/fixing-the-missing-required-architecture-arm-in-file-when-developing-for-ipad/

like image 38
Ross Avatar answered Sep 22 '22 20:09

Ross