Xcode 6.4 不支持 iOS 9
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32652417/
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
iOS 9 not supported by Xcode 6.4
提问by Kitty
The iOS 9 update is not supported by Xcode 6.4 for testing purpose. is there a workaround to connect my device to Xcode for testing. If not can I roll back my update to ios 8.4.1( previous update ).
出于测试目的,Xcode 6.4 不支持 iOS 9 更新。有没有办法将我的设备连接到 Xcode 进行测试。如果不能,我可以将更新回滚到 ios 8.4.1(以前的更新)。
回答by ProgrammierTier
There is a way to deploy to iOS 9 devices with Xcode 6.4. I ended up doing this because I of course had updated my phone right away, but I did not quite want to go to Xcode 7 due to Swift 2 and the lack of support by coacoapods, yet.
有一种方法可以使用 Xcode 6.4 部署到 iOS 9 设备。我最终这样做是因为我当然马上更新了我的手机,但由于 Swift 2 和缺乏 coacoapods 的支持,我还不太想去 Xcode 7。
Here is what I did:
这是我所做的:
- I downloaded Xcode 7, but did not install it.
- Instead I browsed inside the dmg file (Show Package Contents on right-click) to /Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport.
- I then copied the folder named 9.0 (13A340)into the same location of my current installation of Xcode 6.4.
- Lastly I renamed the existing 8.0 (12A365)folder to just 8.0- I am not sure if this is necessary.
- 我下载了 Xcode 7,但没有安装它。
- 相反,我将 dmg 文件(右键单击显示包内容)浏览到/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport。
- 然后我将名为9.0 (13A340)的文件夹复制到我当前安装的 Xcode 6.4 的相同位置。
- 最后,我将现有的8.0 (12A365)文件夹重命名为8.0 - 我不确定这是否有必要。
I am now able to deploy to my phone with iOS9 from Xcode 6.4.
我现在可以从 Xcode 6.4 使用 iOS9 部署到我的手机。
I hope this is helpful to somebody!
我希望这对某人有帮助!
回答by James Webster
回答by Code Commander
This worked for me to allow me to test my app that was built against the iOS8 SDK (on XCode 6.4) on a physical iOS9 device.
这对我有用,允许我在物理 iOS9 设备上测试针对 iOS8 SDK(在 XCode 6.4 上)构建的应用程序。
- Rename XCode to Xcode 6.4 in the Applications folder
- Install Xcode 7 from the downloaded DMG (don't update from the AppStore)
- Open XCode 7 and build a test project (it can be an empty iOS9 app) and run it on your physical iOS9 device
- Close Xcode 7 and open XCode 6.4
- Build your app against the iOS8 SDK and debug on the physical iOS9 device
- 在 Applications 文件夹中将 XCode 重命名为 Xcode 6.4
- 从下载的 DMG 安装 Xcode 7(不要从 AppStore 更新)
- 打开 XCode 7 并构建一个测试项目(它可以是一个空的 iOS9 应用程序)并在你的物理 iOS9 设备上运行它
- 关闭 Xcode 7 并打开 XCode 6.4
- 针对 iOS8 SDK 构建您的应用程序并在物理 iOS9 设备上进行调试
It seems like debugging on XCode 7 first updates something on the device and then XCode 6.4 can debug properly.
似乎在 XCode 7 上调试首先会更新设备上的某些内容,然后 XCode 6.4 才能正确调试。
(This is useful for example, if you don't want to migrate your Swift 1.2 code to 2.0 yet)
(例如,如果您不想将 Swift 1.2 代码迁移到 2.0,这很有用)