Search code examples
iphoneobjective-ciosxcodetestflight

TestFlight: Application executable contains unsupported architecture: armv7s


I'm trying to build an ad-hoc build with test flight.

I have the OS Device selected and am trying to create an archive.

However I get the following warning.

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

I have the following settings for my test flight target.

enter image description here

I can build fine for release.


Solution

  • It looks like you're using an old version of the TestFlight library.

    The iPhone 5 uses a new processor (A6), with a modified instruction set (AMRv7s).
    Since you are building your app with that architecture too, all linked libraries also needs to support it.

    TestFlight provides a new version (1.1) of its library, with support for that specific architecture.
    So simply download the new version of the library, link against that, and you'll be fine.

    Your "Release" target is compiling and linking fine, because no symbol from the TestFlight library is actually used. But if you need TestFlight support for the iPhone 5, just update to the latest version of the library.