Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Application Missing Required Architecture, even when listed

Tags:

ios

xcode4

ios5

When building an iOS project inside Xcode 4 for Archiving, the error:

iPhone/iPod Touch: application executable is missing a required architecture.  At least one of the following architecture(s) must be present: armv6 (-19033)

continues to occur. The screenshot below shows the Build Settings. I have tried all of the common fixes, but none of these seem to work.

Xcode Build Settings

My final thought relates to the first linked question. Does it matter that for "Standard", armv6 isn't listed? If so; how should it be added?

This project is a new Xcode 4 project; only a view controller has been added from the default.

like image 871
nickcharlton Avatar asked Jun 12 '11 17:06

nickcharlton


2 Answers

I had the same problem. In your picture, try adding an architecture to the architectures field and name it armv6. That solved it for me.

like image 184
UpCat Avatar answered Sep 29 '22 20:09

UpCat


Project -> Edit project settings -> in Build tab search with "active" then unselect Buld active arch only

If you uncheck "Build Active Architecture Only", then it will build all the valid architectures.

like image 33
Vijay-Apple-Dev.blogspot.com Avatar answered Sep 29 '22 21:09

Vijay-Apple-Dev.blogspot.com