"Incorrect Architecture" when trying to install iPhone app onto my development device

12,797

In your target settings (not project settings), make sure you have:

  • Architectures: Standard (armv6 armv7)

  • Valid architectures: armv6 armv7

  • Build Active Architecture Only: No

    (though Yes is usually OK in debug builds when you are using a single testing device)

Share:
12,797
Bill
Author by

Bill

Updated on August 14, 2022

Comments

  • Bill
    Bill over 1 year

    I have an iPhone 3G (running iOS 4.0) that I use to performance-test my app on my old hardware. I used to be able to use the device without issue, even with Xcode 4.

    Somehow, though, when I installed the latest build of Xcode4 (4.0.2 build 4A2002a) I lost the ability to install my app on this older device. When I press the Run button, I get

    No provisioned iOS devices are available. Connect an iOS device or 
    choose an iOS simulator as the destination.
    

    However, nothing's changed on the device (my provisioning profile is still installed and valid) and this whole process works fine for my primary device, an iPhone 4.

    I used the Applications screen in the Organizer to manually install the application onto the phone. This looked more promising, as a progress bar started to fill up and indicated that it was copying files onto the device. However, before finishing, it popped up a message:

    An unknown error message 'IncorrectArchitecture', was received from the device. 
    

    and the app never shows up on the phone.

    My project's deployment target is 3.1.3 and the "Architectures" field in Build Settings is set to "Standard (armv6 armv7)"

    Is there something I'm missing here? Why won't it install and what changed between the first release of Xcode4 and the second release that could have caused this?

  • Bill
    Bill about 13 years
    Thanks! That produces armv6 output and I can load the app onto the phone manually via Organizer, but I still get "No provisioned iOS devices are available" when I press Run in Xcode.
  • Julio Gorgé
    Julio Gorgé about 13 years
    That's weird… not sure what else to suggest. I'd restart both Xcode and the iPhone 3G, and finally check that the provisioning profile installed on device hasn't expired.