Xcode 6.3 不支持 iOS 9
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30874352/
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 on Xcode 6.3
提问by Chandler Buck
I downloaded the iOS 9 beta for the iPhone 5s and wanted to test an application that I have finished but now it says that my iPhone is an ineligible device. Is there a way I can still run apps on my iPhone without downloading the Xcode 7 beta?
我为 iPhone 5s 下载了 iOS 9 测试版,想测试一个我已经完成的应用程序,但现在它说我的 iPhone 是不合格的设备。有没有办法在不下载 Xcode 7 beta 的情况下仍然可以在我的 iPhone 上运行应用程序?
回答by Sabareesh
You can RUN App on iOS 9 device using Xcode 6, But firstly you need to build your app on XCode 7, after that it will support on XCode 6.I dont know the reason. I have checked this on My Mac.
您可以使用 Xcode 6 在 iOS 9 设备上运行应用程序,但首先您需要在 XCode 7 上构建您的应用程序,然后它将支持 XCode 6。我不知道原因。我已经在我的 Mac 上检查过了。
[EDIT] Steps
[编辑] 步骤
- Build the project on Xcode 7 while Xcode 6 is opened on the same project.
- Disconnect the device and reconnect it.(Now u can run ur app on XCode6, It may take little time to load device)
- 在 Xcode 7 上构建项目,同时在同一项目上打开 Xcode 6。
- 断开设备并重新连接。(现在您可以在 XCode6 上运行您的应用程序,加载设备可能需要很少的时间)
When i have checked iOS9 with Xcode6, Bugs are very less. So i have plan to support iOS9 with XCode6 for quick release. Later i will do for XCode7.
当我使用 Xcode6 检查 iOS9 时,错误非常少。所以我计划用 XCode6 支持 iOS9 以便快速发布。稍后我将为 XCode7 做。
回答by maniacus
You can build to an iOS 9.0 or 9.1 beta device from Xcode 6.4, not out of the box though. Download Xcode 7.0 and/or Xcode 7.1 beta dmg, and copy the
您可以从 Xcode 6.4 构建到 iOS 9.0 或 9.1 beta 设备,但不是开箱即用的。下载 Xcode 7.0 和/或 Xcode 7.1 beta dmg,然后复制
Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/9.0 (13A340)
from Xcode 7.0 or:
从 Xcode 7.0 或:
.../9.1 (13B5110e)
from Xcode 7.1 beta folders to corresponding folder in your Xcode 6.x. After restarting Xcode iOS 9.0/9.1 devices will no longer be marked an ineligible.
从 Xcode 7.1 beta 文件夹到 Xcode 6.x 中的相应文件夹。重新启动 Xcode 后,iOS 9.0/9.1 设备将不再被标记为不合格。
回答by matt
If you installed iOS 9 beta onto your iPhone, then you cannot develop on it without Xcode 7.
如果您在 iPhone 上安装了 iOS 9 测试版,那么没有 Xcode 7 就无法在其上进行开发。
However, this is not a completely terrible thing; you can readily have both Xcode 7 and Xcode 6 on the same computer.
然而,这并不是一件完全可怕的事情;您可以轻松地在同一台计算机上同时安装 Xcode 7 和 Xcode 6。
(What you cannotdo, according to Apple, is revert your iPhone back to iOS 8 - but there are some comments below from people who were able to do it.)
(根据 Apple 的说法,你不能做的是将你的 iPhone 恢复到 iOS 8 - 但下面有一些来自能够做到这一点的人的评论。)
回答by Boopathi Marappan
Install the latest XCode. Keep both versions on your Mac. Give Keep Both when installing the new XCode and do not give Replace present XCode during the installation.
安装最新的 XCode。在 Mac 上保留这两个版本。在安装新的 XCode 时给 Keep Both,在安装过程中不要给 Replace 当前的 XCode。
Go to application, right click XCode --> show package contents. Copy the latest version from the path:
转到应用程序,右键单击 XCode --> 显示包内容。从路径复制最新版本:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
and copy to the Xcode you are currently working in the same path. Find the screen shots below and start working.
并复制到您当前在同一路径中工作的 Xcode。找到下面的屏幕截图并开始工作。
Happy coding.
快乐编码。
回答by Akhil Balakrishnan
Not the easiest or correct way. But if you really have to test once or twice in the device.
不是最简单或正确的方法。但如果你真的必须在设备中测试一两次。
In Xcode,
在Xcode中,
- Product -> Archive
- Build for Ad-Hoc Distribution
- Connect the device
- Open Itunes, Select the device,
- Select Apps, Drag and drop the .ipa file generated in step 2 to itunes
- Press install
- 产品 -> 存档
- 为 Ad-Hoc 分发构建
- 连接设备
- 打开iTunes,选择设备,
- 选择Apps,将步骤2中生成的.ipa文件拖放到itunes
- 按安装
App will be installed to the ios9 device.
应用程序将安装到 ios9 设备。
回答by Mauker
Don't need build your project at Xcode 7.0, just open and select your device, after that, open your Xcode 6.4 and your device will automatically update the necessary things to build app by Xcode 6.4
不需要在 Xcode 7.0 上构建您的项目,只需打开并选择您的设备,然后,打开您的 Xcode 6.4,您的设备将自动更新必要的东西以通过 Xcode 6.4 构建应用程序
回答by tweetjay
No, you have to download Xcode 7 beta since tools like the compiler and debugger are part of the IDE.
不,您必须下载 Xcode 7 beta,因为编译器和调试器等工具是 IDE 的一部分。
回答by TimD
As stated on Apple Developer Website (here), Xcode 7 Beta has the Swift 2 compiler and SDK for iOS 9. My guess is, your current Xcode doesn't know how to compile for iOS 9 SDK.
如 Apple 开发者网站(此处)所述,Xcode 7 Beta 具有适用于 iOS 9 的 Swift 2 编译器和 SDK。我的猜测是,您当前的 Xcode 不知道如何为 iOS 9 SDK 进行编译。
However, Apple doesn't specifically mention Xcode 7 as a requirement. It states that OS X Yosemite or later is required.
但是,Apple 并没有特别提到 Xcode 7 作为一项要求。它指出需要 OS X Yosemite 或更高版本。
I don't think you can specifically download an SDK that isn't supported inside Xcode. For example, you can go to Xcode -> Preferences -> Downloads and under Components you may see the iOS 9 Simulator.
我认为您无法专门下载 Xcode 不支持的 SDK。例如,您可以转到 Xcode -> Preferences -> Downloads,然后在 Components 下您可能会看到 iOS 9 Simulator。
If you go to the iOS 9 SDK and download it, it seems to only download the device OS and not the entire SDK.
如果你去 iOS 9 SDK 下载它,它似乎只下载设备操作系统而不是整个 SDK。
In conclusion, I believe that the SDK "kit" is integrated with Xcode 7 that would allow you to develop on your iOS 9 Device. Without upgrading, I don't see you being able to do that. I could be wrong though.
总之,我相信 SDK“套件”与 Xcode 7 集成在一起,可以让您在 iOS 9 设备上进行开发。如果不升级,我认为您无法做到这一点。不过我可能是错的。