Reputation: 568
I'm trying to compile my app to a iPhone 3 with iOS 3.1.3. The device is activated as developer and I've configured the deployment target to iOS 3.1 so the iPhone is detected.
When I click Run, it compiles with no error and says "Finished running MyApp on iPhone of myname". However, the app's not executing in the iPhone, nothing happens.
What am I suppose to do to run the app in my old device? When I try with a iPhone 4 there's no problem!
Thanks!
Upvotes: 2
Views: 2003
Reputation: 4174
What I did (for Xcode 4.2 - ymmv with other versions) is go to the target "Build Settings", and under "architectures" select the "Other..." in the pop-up. Then, type in "armv6 armv7". This will enable the app to run in both iPhone 1g and above. Be sure to build with the "Latest iOS" SDK. That's what allowed me to deploy to both my iPhone 1g and my iPhone 3gs and above. This builds a "fat" binary which can be used for either architecture, and can be built optimized when you deploy as a release. Basically what ObjectiveFlash noted, but it might not have been clear to other readers (I myself didn't notice until I re-read it).
Upvotes: 0
Reputation: 73936
Check the architectures you are building for in your build settings. You should have armv6 in there for the iPhone 3.
Upvotes: 7