简体   繁体   English

iPhone 6与iOS 6和Xcode 4.2问题

[英]iPhone with iOS 6 and Xcode 4.2 issue

I have upgraded my iPhone to iOS 6, however I am currently on Xcode 4.2 (on Snow Leopard). 我已将iPhone升级到iOS 6,但我目前使用的是Xcode 4.2(在Snow Leopard上)。 Now I am getting this error message: 现在我收到此错误消息:

The version of iOS on “xxx xxx” does not match any of the versions of iOS supported for development with this installation of the iOS SDK. “xxx xxx”上的iOS版本与iOS SDK安装所支持的任何iOS版本都不匹配。 Please restore the device to a version of the iOS listed below, or update to the latest version of the iOS. 请将设备恢复为下面列出的iOS版本,或者更新到最新版本的iOS。

Is it possible to restore my iPhone to older version say 5.1 or some how make my Xcode to support/recognize iOS6? 是否有可能将我的iPhone恢复到旧版本5.1或某些如何使我的Xcode支持/识别iOS6?

I followed the following steps, to resolve my issue by making Xcode to support iOS 6: 我按照以下步骤,通过使Xcode支持iOS 6来解决我的问题:

1.First download Xcode 4.5 .dmg file from Here (You would need developer account). 1.首先从Here下载Xcode 4.5 .dmg文件(您需要开发者帐户)。

2.Then mount this image and use "Show Package Contents" from context menu. 2.然后安装此映像并使用上下文菜单中的“显示包内容”。

3.Then copy the following folder 3.然后复制以下文件夹

Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/6.1 (10A403) 目录/开发人员/平台/ iPhoneOS.platform / DeviceSupport / 6.1(10A403)

to your mac's following folder (This path may differ from mac to mac based on its version. On Snow Leopard you may find the Developer folder in Finder under PLACES section, and probably on Lion , you have to right click the Xcode.app and have to use Show Package Contents ): 到你的mac的以下文件夹(根据它的版本,这条路径可能因mac而异。在Snow Leopard你可以在PLACES部分的Finder找到Developer文件夹,可能在Lion ,你必须右键单击Xcode.app并且有使用Show Package Contents ):

Developer/Platforms/iPhoneOS.platform/DeviceSupport 开发者/平台/ iPhoneOS.platform / DeviceSupport

4.Similarly copy the iOS 6 SDK folder from following directory: 4.从以下目录中复制iOS 6 SDK文件夹:

Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk 内容/开发/平台/ iPhoneOS.platform /开发商/软件开发工具包/ iPhoneOS6.0.sdk

to your mac's following folder 到你的mac的以下文件夹

Developer/Platforms/iPhoneOS.platform/Developer/SDKs 开发者/平台/ iPhoneOS.platform /开发商/软件开发工具包

5.Also copy version.plist from Contents/Developer/Platforms/iPhoneOS.platform folder to your mac's Developer/Platforms/iPhoneOS.platform folder. 5.还要将Contents/Developer/Platforms/iPhoneOS.platform文件夹中的version.plist复制到mac的Developer/Platforms/iPhoneOS.platform文件夹中。

6.Re-start Xcode and re-connect the device(s). 6.重新启动Xcode并重新连接设备。

Bingo !! 答对了 !! now Xcode supports recognizes iOS6 device(s) and even I am able to run and debug my app (built for older SDKs) on my iPhone with iOS6 (I am not sure about iPhone 6.0 simulator though). 现在Xcode 支持 识别iOS6设备,甚至我能够在iOS6的iPhone上运行和调试我的应用程序(为旧版SDK构建)(虽然我不确定iPhone 6.0模拟器)。

However, answer to How to restore iPhone to older version say 5.1 is still pending. 但是,回答How to restore iPhone to older version say 5.1仍然悬而未决。

You cant debug iO6 device in Xcode 4.2. 您无法在Xcode 4.2中调试iO6设备。 iO6 device debugs only in Xcode 4.5 (latest one) . iO6设备仅在Xcode 4.5(最新版本)中进行调试。 And most importent for installing Xcode 4.5 , in your machine must have at least Lion Operating System .For efficiently debugging of iOS device, You must upgrade your OS. 最重要的是安装Xcode 4.5 ,在您的机器中必须至少具有Lion操作系统 。为了有效地调试iOS设备,您必须升级您的操作系统。

I had the exactly same problem ! 我有完全相同的问题!

Downgrading iOS 6 in your iPhone is not officially supported by Apple anymore : 苹果不再正式支持降级iOS 6中的iOS 6:

https://discussions.apple.com/thread/4533316?start=0&tstart=0 https://discussions.apple.com/thread/4533316?start=0&tstart=0

What works for me was to install Lion in an external HD USB, upgrade Xcode to the latest version and upgrade the Provisioning Profiles in my Apple Developer account for this environment. 对我有用的是将Lion安装在外部高清USB中,将Xcode升级到最新版本,并升级Apple Developer帐户中的Provisioning Profiles以适应此环境。

Upgrade to Xcode 4.5 (and OSX mountain lion). 升级到Xcode 4.5(和OSX Mountain lion)。 No previous version of Xcode supports iOS 6. You can also check if you can restore your phone using a previous version of iOS by getting the .ipsw file and option-clicking on "restore" button when selecting your device on iTunes. 没有以前版本的Xcode支持iOS 6.您还可以通过获取.ipsw文件和选项 - 在iTunes上选择设备时单击“恢复”按钮来检查是否可以使用以前版本的iOS恢复手机。

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

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