简体   繁体   中英

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:

Xcode cannot run using the selected device.

No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.

In XCode under deployment target, there is no option for 8.0 (iOS 8) and the app will not run on my phone.

Is there an SDK I need to download for xcode?

Any help is greatly appreciated.

You need to download Xcode 6, which includes the iOS 8 SDK. You would download this from the Apple developer site, where you downloaded the iOS 8 Beta image from.

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.

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.

The way I got it to work was:

  1. close all instances of Xcode.
  2. open the Xcode 6-Beta
  3. open Xcode 5 so both Xcode's are running at the same time
  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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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