iOS 6 Xcode 4.5 unsupported architecture armv7s

mrosales picture mrosales · Oct 11, 2012 · Viewed 9.9k times · Source

When trying to archive an app for an Ad Hoc release, I am getting the following warning:

iPhone/iPod Touch: application executable contains unsupported architecture(s): armv7s (-19031)

I am really not sure why this is happening for two reasons:

  • The only non-foundation framework I am using is the Facebook SDK, which is the latest version
  • I successfully archived the app last week and the only things that have changed since then are purely coding changes.

Also, I have tried archiving with and without an iPhone 5 plugged in, and I receive the error both ways.

Does anybody know how to fix this?

Answer

S.P. picture S.P. · Oct 11, 2012

Quick fix is

Remove armv7s from

Project -> Build Settings -> Architecures

Updated ::

Now change Build Active Architecture in Build Settings to No to Yes. But even this is not a pure solution to this problem.