Xcode cannot install or launch applications supporting the 64-bit architecture on devices running iOS versions prior to 6.0

According to apple developer site info,'deployment target' must be set to at least 5.1.1 In order to support 64 bit in iOS apps, :

https://developer.apple.com/library/ios/documentation/General/Conceptual/CocoaTouch64BitGuide/ConvertingYourAppto64-Bit/ConvertingYourAppto64-Bit.html

As I understand it - it means that a device with iOS 5.1.1 (32 bit) should be supported (but OS below 5.1.1 is not supported). However, when the app is installed using xCode (6.4) on iPhone4(iOS 5.1.1) I get the following error:


" Xcode cannot install or launch applications supporting the 64-bit architecture on devices running iOS versions prior to 6.0. This configuration is supported for distribution through the iOS App Store, but cannot be used during development with Xcode. To continue, edit the Run scheme action and select a build configuration that does not include the 64-bit architecture."

The error says that this this version (5.1.1) supported on appstore but not on xcode. Does it mean that when the app is uploaded to appstore it will work properly on 5.1.1, but I just can't test 5.1.1 using xcode..?

*bytheway It works on iOS6 and above.

You should be able to test from Xcode but you need a separate build config that doesn't include the arm64 architecture. iOS 5.1.1 devices don't know what to do with a 64 bit slice. The App Store performs some magic on the binary to make the 64 bit slice invisible to the device, but Xcode doesn't know how to do that. So you have to build a version without the 64 bit slice for testing directly from Xcode (or for ad hoc distribution for that matter).

Dear "junkpile" Thank you very much for the answer.


I found another answer similer to this.

It is not possible to install one build that includes arm64 architecture on devices running iOS 5.x other than using the App Store.
So to install development or ad-hoc builds on a device with iOS 5.x or 4.x you need to make an extra build that does not include 64 bit architecture.

When submitting to the App Store, the build can contain all architectures, and Apple will modify the binary on their end so the problem won't occur in that case.


However, now am facing another problem while downloding from app store.

When i tried to download app from APPsoroe at my iPhone 4 (with iOS5.1.1) , it failed to download and it ask me to update the iphone OS.


So is there any one who can still download app at iOS5.1.1 through Appstore?

Dose Apple decide not to support AppStore download for iOS5.1.1? is there any official anounsment from apple?

That message depends on if there is a legacy version of the app you're trying to download that supports a lower iOS than your 5.1.1, as an example. Apparently that dev had never put up that app with less than 5.1.1 support, so the store reponsed with the message to download at newer iOS.

Xcode cannot install or launch applications supporting the 64-bit architecture on devices running iOS versions prior to 6.0
 
 
Q