“不正确的架构”在尝试将iPhone应用程序安装到我的开发设备上时 [英] "Incorrect Architecture" when trying to install iPhone app onto my development device

查看:97
本文介绍了“不正确的架构”在尝试将iPhone应用程序安装到我的开发设备上时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台iPhone 3G(运行iOS 4.0),用于在旧硬件上对我的应用进行性能测试。我曾经能够毫无问题地使用该设备,即使使用Xcode 4也是如此。

I have an iPhone 3G (running iOS 4.0) that I use to performance-test my app on my old hardware. I used to be able to use the device without issue, even with Xcode 4.

不过,当我安装最新版本的Xcode4(4.0.2 build 4A2002a)时)我失去了在这台旧设备上安装我的应用程序的能力。当我按下运行按钮时,我得到

Somehow, though, when I installed the latest build of Xcode4 (4.0.2 build 4A2002a) I lost the ability to install my app on this older device. When I press the Run button, I get

No provisioned iOS devices are available. Connect an iOS device or 
choose an iOS simulator as the destination.

然而,设备上没有任何变化(我的配置文件仍然安装且有效)以及整个过程适用于我的主要设备,iPhone 4。

However, nothing's changed on the device (my provisioning profile is still installed and valid) and this whole process works fine for my primary device, an iPhone 4.

我使用管理器中的应用程序屏幕手动将应用程序安装到手机上。这看起来更有希望,因为进度条开始填满并表示它正在将文件复制到设备上。但是,在完成之前,它会弹出一条消息:

I used the Applications screen in the Organizer to manually install the application onto the phone. This looked more promising, as a progress bar started to fill up and indicated that it was copying files onto the device. However, before finishing, it popped up a message:

An unknown error message 'IncorrectArchitecture', was received from the device. 

并且应用程序永远不会显示在手机上。

and the app never shows up on the phone.

我的项目的部署目标是3.1.3,Build Settings中的Architectures字段设置为Standard(armv6 armv7)

My project's deployment target is 3.1.3 and the "Architectures" field in Build Settings is set to "Standard (armv6 armv7)"

我有什么东西吗?我在这里失踪了?为什么不安装Xcode4的第一个版本和可能导致这个问题的第二个版本之间发生了什么变化?

Is there something I'm missing here? Why won't it install and what changed between the first release of Xcode4 and the second release that could have caused this?

推荐答案

目标设置(不是项目设置)中,请确保您拥有:

In your target settings (not project settings), make sure you have:


  • 架构:标准(armv6 armv7)

  • Architectures: Standard (armv6 armv7)

有效架构:armv6 armv7

Valid architectures: armv6 armv7

仅构建活动架构:否

(当您使用单个
测试设备时,调试
版本通常可以。)

(though Yes is usually OK in debug builds when you are using a single testing device)

这篇关于“不正确的架构”在尝试将iPhone应用程序安装到我的开发设备上时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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