简体   繁体   English

通过XCode在具有iOS 8的iPhone上运行iOS应用

[英]Run iOS Apps on iPhone with iOS 8 through XCode

My iphone is currently running ios 8. When I try to run apps through XCode on my phone I get this error message: 我的iPhone当前正在运行ios8。当我尝试通过手机上的XCode运行应用程序时,出现以下错误消息:

Xcode cannot run using the selected device.

No provisioned iOS devices are available with a compatible iOS version. 没有可用的兼容iOS版本的预配置iOS设备。 Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination. 将iOS设备与最新版本的iOS连接,以运行您的应用程序或选择iOS模拟器作为目标。

In XCode under deployment target, there is no option for 8.0 (iOS 8) and the app will not run on my phone. 在部署目标下的XCode中,没有用于8.0(iOS 8)的选项,该应用程序将无法在我的手机上运行。

Is there an SDK I need to download for xcode? 是否需要下载xcode的SDK?

Any help is greatly appreciated. 任何帮助是极大的赞赏。

You need to download Xcode 6, which includes the iOS 8 SDK. 您需要下载Xcode 6,其中包括iOS 8 SDK。 You would download this from the Apple developer site, where you downloaded the iOS 8 Beta image from. 您可以从Apple开发人员站点下载此文件,从该站点可以从中下载iOS 8 Beta映像。

https://developer.apple.com/devcenter/ios/index.action https://developer.apple.com/devcenter/ios/index.action

Xcode 5 knows nothing of the existence of iOS 8. You're going to need to get Xcode 6 from this page ( direct link ) if you want to run apps on your iOS 8 device. Xcode 5对iOS 8的存在一无所知。如果要在iOS 8设备上运行应用程序,则需要从此页面获取Xcode 6( 直接链接 )。

Note that the direct link is only good for the version of Xcode 6 shipped alongside iOS 8 Beta 2. I have no idea what it will do when we get to Beta 3. 请注意 ,直接链接仅适用于与iOS 8 Beta 2一起提供的Xcode 6版本。我不知道当我们进入Beta 3时它将做什么。

The way I got it to work was: 我使它工作的方式是:

  1. close all instances of Xcode. 关闭所有Xcode实例。
  2. open the Xcode 6-Beta 打开Xcode 6测试版
  3. open Xcode 5 so both Xcode's are running at the same time 打开Xcode 5,以便两个Xcode都同时运行
  4. close Xcode 6-Beta, and after doing that, Xcode 5 will recognize your device as a capable one and you'll be able to deploy to your iOS 8 phone. 关闭Xcode 6测试版,然后Xcode 5会将您的设备识别为功能强大的设备,您便可以将其部署到iOS 8手机上。

The reason you need Xcode 5 is because you won't be able to submit iOS 7 apps to the app store from Xcode 6, it'll give you an error so you need to use Xcode 5. 之所以需要Xcode 5,是因为您将无法从Xcode 6将iOS 7应用提交到应用商店,这会给您一个错误,因此您需要使用Xcode 5。

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

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