XCode 4.5 (4G182) + iPhone 5 iOS6 - Choose a destination with a supported architecture in order to run on this device
Solution 1
Also you need to select the compiler LLVM in
Project --> Build Settings --> Build Options
Solution 2
I have found the same issue while running an OLD project on XCode 5.0 and My solution is:
You need to do following steps for getting out with this:
1. Set Valid Architectures : armv7,armv7s
2. Set compiler as LLVM in Project ---> Build Settings ---> Build Options.
3. Set Base and Deployment sdk properly.
This is my solution. Happy To Help.
Solution 3
You need to add armv7s to your valid architectures under your Target's Build Settings.
Solution 4
You included src/Framework/Resources/Info.plist
when added Facebook SDK files to your project. Just remove it from your project and everything will work again. Guaranteed! :)
Solution 5
I have solve the problem using the below steps.
- Close the Xcode
- Delete the application from device
- Restart the device
- then re-run the application
it is working fine..
Eneko Alonso
I love developing iOS, macOS, and backend applications in Swift.
Updated on May 15, 2020Comments
-
Eneko Alonso almost 4 years
So I have a brand new app I created last night for iOS6, using XCode 4.5. I can properly develop on my iPhone 4 with iOS6.
Today I got my new iPhone 5 with iOS6 and, after updating the certificates with the new device UUID, I tried to run my app on it and got this error:
XCode cannot run using the selected device. Choose a destination with a supported architecture in order to run on this device.
I've enabled the device for development. Both armv7 and armv7s are on the settings.
I have included the sources from the Facebook 3.0 SDK and the linker flag '-lsqlite3.0'. I'm guessing the issue has to be related, but cannot figure what is wrong.
Any ideas how to solve it?
PS: The issue happens too when running the app on the simulator. No idea what changed on my project or XCode between last night and today, other than I have a new device and new certificates.
The selected destination does not support the architecture for which the selected software is built. Switch to a destination that supports that architecture in order to run the selected software.