简体   繁体   English

“”上的iPhone OS版本与使用此Xcode副本支持开发的任何iPhone OS版本都不匹配

[英]The version of iPhone OS on “” does not match any of the versions of iPhone OS supported for development with this copy of Xcode

I have followed Apples tutorial and upgraded my iphone to 3.0. 我已经关注了Apples教程并将我的iphone升级到3.0。 But i get this error: 但我得到这个错误:

OS Installed on 3.0 (7A341) 操作系统安装在3.0(7A341)

Xcode Supported iPhone OS Versions 3.0 (7A312g) 2.2.1 Xcode支持的iPhone OS版本3.0(7A312g)2.2.1

And when i try to run an application on my iphone xcode states: No provisioned iPhone OS device is connected. 当我尝试在我的iphone xcode上运行应用程序时:未连接配置的iPhone OS设备。

What have I missed? 我错过了什么?

Stumbled across this question because I've had the same problem with 3.0.1. 偶然发现这个问题,因为我遇到了与3.0.1相同的问题。 Apple has an advisory (PDF) about how to get XCode to stop worrying and love the 3.0.1. Apple有一个关于如何让XCode不再担心并喜欢3.0.1 的咨询(PDF) It boils down to running a command in Terminal: 归结为在终端中运行命令:

ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1 

It looks like you need to upgrade xcode to the newest version of the SDK as well as your iPhone / iPod Touch to the newest version of the SDK. 您似乎需要将xcode升级到最新版本的SDK以及将iPhone / iPod Touch升级到最新版本的SDK。 It looks like your XCode is from beta 5 where your iPhone is GM. 看起来你的XCode来自beta 5,你的iPhone就是GM。

Both XCode and the iPhone OS need to be the most recent version to install apps. XCode和iPhone OS都需要是安装应用程序的最新版本。 In addition, you will need to reenable the iPhone for development after every software upgrade in the XCode device manager. 此外,在XCode设备管理器中进行每次软件升级后,您需要重新启用iPhone进行开发。

How To: 如何:

Add an iOS SDK from a downloaded Xcode dmg: 从下载的Xcode dmg添加iOS SDK:

  1. Download the Xcode version dmg containing the iOS SDK you need 下载包含您需要的iOS SDK的Xcode版本dmg
  2. Make sure Xcode is not running 确保Xcode没有运行
  3. Double click the downloaded Xcode dmg, right click the Xcode.app icon, choose "Show Package Content" 双击下载的Xcode dmg,右键单击Xco​​de.app图标,选择“显示包内容”
  4. Copy Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs (on you local machine) 将内容/开发人员/平台/ iPhoneOS.platform / Developer / SDKs /复制到/Developer/Platforms/iPhoneOS.platform/Developer/SDKs(在本地计算机上)
  5. Copy Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneSimulator.platform/Developer (on you local machine) 将内容/开发人员/平台/ iPhoneSimulator.platform / Developer / SDKs /复制到/Developer/Platforms/iPhoneSimulator.platform/Developer(在本地计算机上)
  6. Copy Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ to /Developer/Platforms/iPhoneOS.platform/DeviceSupport (on you local machine) 复制内容/开发人员/平台/ iPhoneOS.platform / DeviceSupport /到/Developer/Platforms/iPhoneOS.platform/DeviceSupport(在本地计算机上)
  7. Right click Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/, choose "Make Alias", rename the alias to "Latest" 右键单击Contents / Developer / Platforms / iPhoneOS.platform / DeviceSupport /,选择“Make Alias”,将别名重命名为“Latest”
  8. Start Xcode 启动Xcode

如果手机处于橙色状态,请在组织者窗口中查看..然后重新启动手机并查看。

I have solved this as Pluckyglen said, but will add that this is a way to cheat XCode about the version of the Device. 我已经解决了这个问题,正如Pluckyglen所说,但是会补充一点,这是一种欺骗XCode关于Device版本的方法。 Creating a unix Symbolic link: 创建unix符号链接:
ln -s <´Xcode version´> <´Device Version´>
makes Xcode think that the device version is a supported version, cause we are making the dev version just a link to one of the supported versions. 使Xcode认为设备版本是受支持的版本,因为我们正在使dev版本只是一个支持版本的链接。 At least this is what I understood :P 至少这是我所理解的:P

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM