使用Xcode 4.3.1和IOS无法在iPhone 4.2.1上运行应用程序
我希望有人可以提供帮助:)这一直困扰着我,这一次。
I hope someone can help :) It's been troubling me for a while, this one.
我正在使用基础SDK iOS 5.1运行Xcode 4.3.1。
iPhone版本是4.2.1,我相信是一款旧的3S型号。
I'm running Xcode 4.3.1 with base SDK iOS 5.1. iPhone version is 4.2.1, an old 3S model I believe.
当点击Run时,Xcode编译得很好并说它正在手机上运行我的应用程序。一切似乎都有效,但应用程序无法在手机上启动。谁知道我在这里做错了什么?该应用程序在模拟器中运行良好。
When hitting Run, Xcode compiles fine and says that it's running my app on the phone. Everything appears like it works, but the app does not launch on the phone. Anyone know what I'm doing wrong here? The app works fine in the simulator.
当我尝试在4S版本5.1上运行应用程序时,Xcode说:Xcode无法使用所选设备运行。没有配置的iOS设备可用兼容的iOS版本。连接iOS设备和最新版本的iOS以运行您的应用程序或选择iOS模拟器作为目的地。。
Also when I try to run the app on a 4S, version 5.1, Xcode says: "Xcode cannot run using the selected device. No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.".
您需要将 armv7
和 armv6
架构添加到架构和你需要这样做,因为armv6是由早于iPhone 3GS的设备支持的架构,因此如果你需要编译或支持iPhone 3GS之前的设备,你需要添加 armv6
到你的架构如下所示:
You need to add armv7
and armv6
architectures both to the Architectures and you need to do this as armv6 is architecture supported by devices older than iPhone 3GS and hence if you need to compile or give support to devices prior than iPhone 3GS, you need to add armv6
to your architectures as shown below:
希望这会有所帮助。