无法在带有 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

查看:18
本文介绍了无法在带有 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.

点击运行时,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.".

推荐答案

您需要将 armv7armv6 架构都添加到架构中,您需要这样做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天全站免登陆