开发者

Xcode cannot run using the selected device

开发者 https://www.devze.com 2023-02-18 23:39 出处:网络
This is the message while trying to run under XCode 4 (it used to work under XCode 3): No provisioned iOS devices are available. Connect an iOS device or choose an iOS simulator as the destination.

This is the message while trying to run under XCode 4 (it used to work under XCode 3):

No provisioned iOS devices are available. Connect an iOS device or choose an iOS simulator as the destination.

I have profiles for my device for this app... w开发者_运维问答here should I be looking to correct this?

Xcode cannot run using the selected device


The problem is that your iOS Deployment Target in Project-> Build Settings is different from the current version of iOS on your real device.


You're asking where to find it:

In XCode 4 there is a new button - look for the big

"Organizer button"

which is at the TOP RIGHT.

Physically connect your device and then click Devices. It seems that the new "Organizer button" is one of the "most-missed" things in the transition to XCode4.

Note, the questioner is asking: "WHERE should I be looking to correct this?"


I was having extra trouble because of my Enterprise License, but still updated the iPads. I didn't have to change anything in the Build Settings to lower. But the main thing that I had a problem with was in the Organizer I needed to hit "Use for Development" button.

Kind of an old post, and may not be the best way or a rookie thing to miss but wanted to help anyone out.


My problem similar to those above were related to having the deployment target set too high for the version installed on the phone. Would be nice if it gave a more useful error message. I spent hours messing with my provisioning profile trying to fix it, when the real problem was the older version of the software on the phone.


I had the same problem. The reason was simply, that my ipad had not been update to version 4.3.


This just happened to me for iOS5 with xcode 4.2.
The answer is to go into organiser, select your device, and press the "Develop with this device" button (or similar wording). Then go back and build, and it should work..


I received this error while having an iPad properly connected.

Some info:

  • Ipad iOS version: 4.2.1
  • XCode 4.2
  • XCode project created with "iOS Application / Empty Application" template.

The problem was that I had to specify the "iOS Deployment Target" to 4.2 in more than one place!

That is, both in the "Build Settings" and in the "Summary".

Very odd, and definitely another XCode4 annoyance.


I got this error in Organizer - "Could not support development.". I tried rebooting the iOS device and it worked for me :)


Check that the Executable File (also known as CFBundleExecutable) in the Info.plist file is set to ${EXECUTABLE_NAME} as opposed to any hardcoded value. This will ensure that even if you change your project name or target name or scheme name, that it still works.


you need to install the proper version of iOS.in my case it is iOS 4.0 - 4.1 Device Debugging Support GOTO --> XCode Preferences -> Downloads --> Component there are all updates available for your iOS click Install.

This is works for me.


It looks like this error can also come about if the "Product Name" in your target's build settings does not match the value of "CFBundleExecutable" in your info.plist

It looks like to me this is the general error Apple gives if the executable is not installed correctly on the device. When the debugger tries to attach it looks for the executable name and if it's not there they give this error. Touch one to debug.


Go to build option and select valid compiler.


Chose your right iOS Deployment version

0

精彩评论

暂无评论...
验证码 换一张
取 消