Xcode 6 与 iOS 9?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30823478/
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-15 07:17:28  来源:igfitidea点击:

Xcode 6 with iOS 9?

iosiphonexcodeios9

提问by ABC

I'm fairly new to iOS development and I upgraded my device to iOS 9.0 beta, to see how my app faired. However, I did not upgrade to Xcode 7 beta. I'm getting an error that says my device is now "ineligible", specifically,

我对 iOS 开发还很陌生,我将我的设备升级到了 iOS 9.0 测试版,看看我的应用程序如何。但是,我没有升级到 Xcode 7 beta。我收到一条错误消息,指出我的设备现在“不合格”,具体来说,

iPhone (3) may be running a version of iOS that is not supported by this version of Xcode.

iPhone (3) 可能正在运行此版本的 Xcode 不支持的 iOS 版本。

Is this standard? Do I have to upgrade to Xcode 7 if I'm running iOS 9.0?

这是标准吗?如果我运行的是 iOS 9.0,我是否必须升级到 Xcode 7?

采纳答案by Ben Kane

Yes, you need to install Xcode 7 in order to develop for iOS 9. You are able to keep Xcode 6 running alongside Xcode 7.

是的,您需要安装 Xcode 7 才能针对 iOS 9 进行开发。您可以让 Xcode 6 与 Xcode 7 一起运行。

回答by Hassan Chizari

The problem with Xcode 7 is that it wants to change your swift code to be able to run. There is way here. Download Xcode 7 and run it. After a few minutes with some installations, connect your iOS 9 device to computer so you can see it in Xcode 7. Then quit Xcode 7 and run Xcode 6 and surprisingly, Xcode 6 will detect your device and you can run your app on it.

Xcode 7 的问题在于它想要更改您的 swift 代码以使其能够运行。这里有办法。下载 Xcode 7 并运行它。经过几分钟的安装后,将您的 iOS 9 设备连接到计算机,以便您可以在 Xcode 7 中看到它。然后退出 Xcode 7 并运行 Xcode 6,令人惊讶的是,Xcode 6 将检测到您的设备,您可以在其上运行您的应用程序。

回答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 have checked this on My Mac.

您可以使用 Xcode 6 在 iOS 9 设备上运行应用程序,但首先您需要在 XCode 7 上构建您的应用程序,之后它将支持 XCode 6。我已经在我的 Mac 上检查过这个。

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 ksenks

There is a way to debug devices with iOS 9 installed with Xcode 6. Go to Xcode main menu: Product -> Destination and select your device. Even though it says your device is ineligible, you can still select it and then it usually works.

有一种方法可以调试安装了 iOS 9 和 Xcode 6 的设备。转到 Xcode 主菜单:Product -> Destination 并选择您的设备。即使它说您的设备不符合条件,您仍然可以选择它,然后它通常可以工作。

If it doesn't work, try to run Xcode 7 and wait while it indexes the device with iOS 9. Sometimes you need to unplug and plug the device again.

如果它不起作用,请尝试运行 Xcode 7 并等待它使用 iOS 9 为设备编制索引。有时您需要重新拔下设备并重新插入。

回答by tGilani

It's easy.

这很简单。

  1. Download Xcode 7 or 7.1
  2. In finder Browse within both Xcode apps to following directory. Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  3. Copy 9.0 and 9.1 folders over to Xcode 6 in same directory.
  4. Restart Xcode and reconnect your iOS 9 device.
  1. 下载 Xcode 7 或 7.1
  2. 在 finder 中浏览两个 Xcode 应用程序到以下目录。 Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  3. 将 9.0 和 9.1 文件夹复制到同一目录中的 Xcode 6。
  4. 重新启动 Xcode 并重新连接您的 iOS 9 设备。

Kaboom

卡布姆

回答by tiguero

As mentioned by @Ben you need to download XCode7 which release date now is right on the corner (mid-sept) but you DON'T need to build your application under XCode7. The trick is to let XCode7 copy symbols. Once done you can build your app on your device under XCode 6.4 and without to support Swift 2.0: your device will be recognized then. So yes you will need to keep a copy of XCode 6 and XCode 7 for that matter.

正如@Ben 所提到的,您需要下载 XCode7,其发布日期现在就在拐角处(9 月中旬),但您不需要在 XCode7 下构建您的应用程序。诀窍是让 XCode7 复制符号。完成后,您可以在不支持 Swift 2.0 的情况下在 XCode 6.4 下在您的设备上构建您的应用程序:您的设备将被识别。所以是的,您需要为此保留一份 XCode 6 和 XCode 7 的副本。

回答by tania_S

You need to install Xcode 7 in order to develop for iOS 9. You are able to keep Xcode 6 running alongside Xcode 7

您需要安装 Xcode 7 才能针对 iOS 9 进行开发。您可以让 Xcode 6 与 Xcode 7 一起运行

回答by Matt Bearson

Here's an easy workaround -- especially if you have access to Xcode 7 on a different machine (but you can do it on the same mac too):

这是一个简单的解决方法——特别是如果您可以在另一台机器上访问 Xcode 7(但您也可以在同一台 mac 上执行此操作):

Deploy any app, e.g. Apple sample code, from Xcode 7 once. Then go back to Xcode 6.4 and it will no longer consider the device "ineligible."

从 Xcode 7 部署一次任何应用程序,例如 Apple 示例代码。然后回到 Xcode 6.4,它将不再认为该设备“不合格”。