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

samir source share