简体   繁体   中英

“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."

Until recently I had no problem deploying an app from Xcode onto my iPhone 6. But suddenly it stopped working.

I can still deploy onto my iPad mini.

Only difference is that the iPhone 6 is on latest iOS - 8.3, and iPad mini is still on 8.2.

I double checked and the iPhone 6 UDID is still registered.

The app is deploying for iOS 8.0 - BELOW the phone's iOS.

Please help!

It seems, your bundle identifier is not recognized. Check:

1) Click on XCode project -> Project Target -> Info

2) Check ''Bundle identifier'' for validation

If Bundle Identifier is not your, change to your valid.

If Bundle Identifier is your, try refresh him in developer.apple.com and reinstall him in your Mac.

BUT

Great solution is:

1) Open XCode -> Preferences

2) Click 'Accounts'

3) Click '+' at left colum

4) Enter your Apple login and password

5) Click XCode Project -> Project Target -> General

6) In 'Team' select your Apple ID

7) Click on 'Fix issue'

At this case, your bundle, your certificates from developer.apple.com will refresh from XCode by this great 'Fix issue' button.

UPD

If you're still have a problem, try delete all old provisions by this steps:

1) Open in Finder: Users/{username}/Library/MobileDevice/Provision Profiles/

2) Select all mobile provision files and Move to trash

3) Open your XCode project

4) Just run your project in registered device

Now XCode will download new provision file from itunesconnect.apple.com, if your Apple ID is already registered into XCode->Preferences->Accounts

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