Choose a destination with a supported architecture in order to run on this device

Objective CCocos2d IphoneXcodebuild

Objective C Problem Overview


enter image description here

my Xcode is Version 4.4.1

The project worked perfect before updating to this newer version, but now it stopped working

Objective C Solutions


Solution 1 - Objective C

I have had the same issue when making multiple targets. My issue was that I had to change my Product Name under Packaging.

In each target project > Build Settings > Packaging -> Product Name

Solution 2 - Objective C

I wanted to install my old application on iPad. I updated the my XCode from 4.3.2 to XCode 4.5 and having this problem.I tried searched alot finally got this solution.

In your target settings (not project settings), please check the following settings there

> Valid Architectures : armv7

In my case, there was arm6 which i removed from it and it works. Hope this helps :)

Solution 3 - Objective C

Had the same issue today. If you have added any file check if you didn't also add info.plist with the files. Remove that and it will work.

Solution 4 - Objective C

In your Info.plist remove a string "Required device capabilities armv7"

Solution 5 - Objective C

I had this same error message thrown at me today.

I was working in a workspace with a few iOS App projects and a Framework project (using https://github.com/kstenerud/iOS-Universal-Framework). I had just added that Framework project and tested things out in the iPhone emulator, but when I went to just fire up any of the apps on my iPhone, they all threw this error (mentionned above).

Turns out I fixed the problem by just removing the Framework project from the workspace. I could use the framework from within an iOS app without trouble, but the framework project could live in the same workspace for some reason.

Hope this helps anyone in my situation!

Solution 6 - Objective C

I just ran into this issue I had added the Info.plist from the Facebook SDK 3.5 to my Xcode project. As soon as I removed the facebook Into.plist file everything worked.

Solution 7 - Objective C

In your Info.plist remove a string "Required device capabilities opengles-1"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser1297301View Question on Stackoverflow
Solution 1 - Objective CM JesseView Answer on Stackoverflow
Solution 2 - Objective CiNealView Answer on Stackoverflow
Solution 3 - Objective CLetynSOFTView Answer on Stackoverflow
Solution 4 - Objective COrdoDeiView Answer on Stackoverflow
Solution 5 - Objective CmatehatView Answer on Stackoverflow
Solution 6 - Objective CribetoView Answer on Stackoverflow
Solution 7 - Objective CJarsonView Answer on Stackoverflow