使用Xcode 4.3.1和IOS无法在iPhone 4.2.1上运行应用程序 [英] Can't run app on iPhone 4.2.1 with Xcode 4.3.1 and IOS

查看:152
本文介绍了使用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:

希望这会有所帮助。

这篇关于使用Xcode 4.3.1和IOS无法在iPhone 4.2.1上运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆