xcode 找不到安装此版本的软件映像

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5885859/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 03:55:41  来源:igfitidea点击:

xcode cannot find the software image to install this version

iphonexcodeprovisioning

提问by Overbeeke

I'm new to xCode development and struggling my way through the provisioning system trying to run a Hello World app on a real device. I went through al steps and everything seems fine but one thing:

我是 xCode 开发的新手,并且在尝试在真实设备上运行 Hello World 应用程序的配置系统中苦苦挣扎。我经历了所有步骤,一切似乎都很好,但有一件事:

When i click my device (Iphone 3G running IOS 4.2.1) in the xCode organizer the following message is displayed under Software Version: Xcode cannot find the software image to install this version...

当我在 xCode 管理器中单击我的设备(运行 IOS 4.2.1 的 Iphone 3G)时,软件版本下会显示以下消息:Xcode 找不到安装此版本的软件映像...

Also the provisioning profiles show no status in the organizer (both in the library and on the device). On the provisioning portal they have the status active.

此外,配置文件在管理器中不显示任何状态(在库中和设备上)。在供应门户上,它们的状态为活动状态。

I hope someone can help me, thanks!!

希望有人能帮帮我,谢谢!!

ps. i am working with xcode 4

附:我正在使用 xcode 4

Update: OK, I've found the solution -> set deployment target to 4.2 in info tab: https://discussions.apple.com/thread/2780316?start=0&tstar

更新:好的,我找到了解决方案 -> 在信息选项卡中将部署目标设置为 4.2:https: //discussions.apple.com/thread/2780316?start=0&tstar

回答by Harry Wood

The message "xcode cannot find the software image to install this version"seen in the organiser window... This is just a notification rather than a problematic error.

在管理器窗口中看到的消息“xcode 找不到安装此版本的软件映像”......这只是一个通知,而不是一个有问题的错误。

If you want to eliminate this message anyway, I found I was able to do this by running restore within iTunes. Part of that process involves downloading some stuff, which I presume is the 'software image'.

如果您无论如何都想消除此消息,我发现我可以通过在 iTunes 中运行恢复来做到这一点。该过程的一部分涉及下载一些东西,我认为这是“软件映像”。

But, as explained in Technical Q&A QA1569"This message does not prevent you from using the device for development purposes. The only effect is the inability to reinstall the OS currently on the device using Xcode."...and that has been my experience. Back in the main Xcode window you're still able to click 'run' and send the app to the device to run.

但是,正如技术问答 QA1569 中所述,“此消息不会阻止您将设备用于开发目的。唯一的影响是无法使用 Xcode 重新安装当前设备上的操作系统。” ……这就是我的经验。返回主 Xcode 窗口,您仍然可以单击“运行”并将应用程序发送到设备以运行。

...and it will run assuming everything else is set-up OK, but there are various other gotchas related to Xcode 4.2 and v4 devices:

...它会在假设其他一切设置正常的情况下运行,但还有各种其他与 Xcode 4.2 和 v4 设备相关的问题:

  • As mentioned by Overbeeke you should ensure the 'deployment target' of your project is set down to the desired version (the minimum version of the devices you want to support) Additionally I would point out that the 'SDK version' should normally remain set to the latest (it's whatever SDK Xcode on your machine is using)

  • As mentioned by Kenneth Lam, in the new Xcode you need to frig around with "armv6/armv7" settings if you want to support earlier models of iPhone. Follow these instructions to add the right "Architecture" armv6 setting. Additionally I would point out (as per this answer further down) that there is a setting called "Required device capabilities" from which you need to remove'armv7'. This is in your app's plist file.

  • 正如 Overbeeke 所提到的,您应该确保将项目的“部署目标”设置为所需的版本(您要支持的设备的最低版本)此外,我要指出“SDK 版本”通常应保持设置为最新的(它是您机器上使用的任何 SDK Xcode)

  • 正如 Kenneth Lam 提到的,在新的 Xcode 中,如果您想支持早期型号的 iPhone,您需要使用“armv6/armv7”设置。按照这些说明添加正确的“架构”armv6 设置。此外,我会指出(根据此答案进一步向下),有一个名为“所需设备功能”的设置,您需要从中删除“armv7”。这是在您的应用程序的 plist 文件中。

I'm saying all this like I'm an expert, but I still can't get it to work on a v3.1.3 device :-)

我说这一切就像我是专家一样,但我仍然无法让它在 v3.1.3 设备上运行 :-)

回答by Jonathan.

I think Xcode 4 requires that you are running the latest iOS to use that feature, but you don't need it to install apps on a device. I have run my apps on an iPod Touch 1G (which can't be upgraded to iOS 4.3) with the same iOS as you and it worked.

我认为 Xcode 4 要求您运行最新的 iOS 才能使用该功能,但您不需要它来在设备上安装应用程序。我已经在 iPod Touch 1G(无法升级到 iOS 4.3)上运行我的应用程序,并且使用与您相同的 iOS 并且它工作正常。

Have you added your device to the provisioning profile?

您是否已将您的设备添加到配置文件中?

What I did is opened the organizer, right click on the device on the left pane and select "Add device to provisioning profile" where you will be asked for your Apple ID (within xcode) and it will add the device to your profile without you leaving xcode, much simpler than using the online portal.

我所做的是打开管理器,右键单击左侧窗格中的设备并选择“将设备添加到配置文件”,您将被要求提供您的 Apple ID(在 xcode 中),它将在没有您的情况下将设备添加到您的配置文件中离开xcode,比使用在线门户简单得多。

回答by Kenneth Lam

Xcode 4.2 only builds armv7 targets by default. (Iphone 3G running IOS 4.2.1 is armv6) Add armv6 build targets by following these excellent instructions from Nick "Warning: iPhone apps should include an armv6 architecture" even with build config set

默认情况下,Xcode 4.2 仅构建 armv7 目标。(运行 IOS 4.2.1 的 iPhone 3G 是 armv6)按照 Nick “警告:iPhone 应用程序应该包含 armv6 架构”的这些优秀说明添加 armv6 构建目标,即使使用构建配置集

回答by austin

just an update, to update the iOS deployment target, click your project in the left pane, the one with the blue 'A' icon. click the build settings tab (not info), instead of showing "basic," show "all." iOS deployment target is in the deployment section.

只是一个更新,要更新 iOS 部署目标,请单击左侧窗格中的项目,即带有蓝色“A”图标的项目。单击构建设置选项卡(不是信息),而不是显示“基本”,而是显示“全部”。iOS 部署目标位于部署部分。

回答by yeahdixon

There could be a number of things, but i would make sure that that your deployment taget in build settings is at or below your target . Check the "deployment section" in the build settings of your project. The default sets the deployment to the highest iOS version, if the ios version is below what is set you will not be able to run the app on that device.

可能有很多事情,但我会确保您在构建设置中的部署目标等于或低于您的目标。检查项目构建设置中的“部署部分”。默认将部署设置为最高的 iOS 版本,如果 ios 版本低于设置的版本,您将无法在该设备上运行该应用程序。