Launching an iOS app on a device with iOS 5.1.1 using Xcode 5

I am trying to install an iOS application on my iPad running iOS 5.1.1. When I run it using Xcode with a development profile, I get the following errors:

Xcode cannot install or run applications that support 64-bit architectures on devices with iOS versions prior to 6.0. This configuration is supported for distribution through the iOS App Store, but cannot be used during development using Xcode. To continue, edit the Run Scheme action and select an assembly configuration that does not include 64-bit architecture.

I tried to change the architecture of the building by removing arm64, but I have the same error.

I tried installing it using testflight, building an ipa with an adhoc provisioning profile, but the same error is repeated.

How can I test my application on a real device running iOS 5.1.1 by building Xcode 5

Valid architectures

+6
source share
2 answers

You need to create a test target that does not have arm64 in valid architectures.

See screenshot, make sure you don't have arm64.

enter image description here

+6
source

Changing Build Active Architecture for Yes only for the debugging scheme fixed this for me. This is shown in the screenshot of the accepted answer, and perhaps this is the real solution, not what describes the accepted answer.

+1
source

All Articles