Selected device could not run on Xcode 4.6 - iphone

My Xcode Version 4.6 (4H127) and my Mac OS is 10.7.5. I installed valid provisioned profile and certificates also. When I deploy Xcode through device it shows error 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. If anyone know can you solve my problem?

10.7.5 is your Mac OS X version number, not your iOS device version.
The problem is you do not have valid Provisioning Profile. Go to Apple Developer Center > Provisioning Portal to create necessary App ID and Provisioning Profile.
Alternatively, right click on your device in Xcode > Organizer to "Add to Provisioning Portal"

How about selecting "Use this phone for development" in the Devices pane of the Organizer?

Xcode now creates applications for ARM7 by default.
To support the iPhone 3G and other arm6 devices, you need to specify arm6 and arm7 in in the Architectures list, and set the device requirements to only arm6 in the plist.
It depends that what device you are using. If its iOS6 device then its ok with default else use above setting.

Check your selected deployment target , select this according to your device iOS version.

Shivan's answer (Alternatively, right click on your device in Xcode > Organizer to "Add to Provisioning Portal") helped me with the same problem with the additional step of then disconnecting the device (USB) and reconnecting.

Related

No provisioned iOS devices are available with a compatible iOS version - none of the answers provided have helped

I renewed my developer license and figured out that my private key was on my other laptop in India so I created new certificates and accidentally updated my iOS to the latest version and there is no green light next to iPhone device in organizer window and i am getting this error, I am on XCode 4.2 - "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" There was also no option to "Use for development" when I clicked on the device.
I have revoked my certificates and also made new certificates
Cleared the certificate history.
Restarted XCode and also my iPhone.
Installed the certificates in my library as well
None of the above has helped! Any clue/help would be appreciated
You need to update your xcode after that it will work.
You have to update your Xcode to 4.5 (new) version. And after that for run previous iOS you have to add SDK for previous version from Xcode > Preference > Download > Component there you can see various simulator for iOS 4.3, iOS 5.0, ios 5.1, and iOS 6.0. Download this simulator and you are good to go.
Hi the solution is simple...
You need to add a device click SHIFT + CMD + 2 and add devices
in IOS6 you need to click on menu -> windows -> devices and add it
.
- click on the left corner side on the project
- click info
- in the Deployement target
- in the IOS Devewlopment Target click the version available for you system

Why dot in front of my device is orange in organizer of xcode?

I am using Xcode 3.2.6. My mac OS X version is 10.6.8. I added my new iPhone 4S in device portal and installed provisioning profile. iOS 5.1.1 is installed on my phone. I got orange dot in front of my device in organizer and this message comes when i try to add device to portal. "Xcode cannot find the software image to install this version".
How can i change that orange dot to green so i can install and check my app in my new iPhone. Thanks in advance.
I assume your 4S is running iOS5? You should update Xcode to the latest version (available on the mac app store)
You should upgrade your Xcode with 4.3 at least.
Also make sure you only have the new profile installed under your provisioning tab on both the device and one the Mac duplicates will cause problems such as these although xcode needing updated may be the problem too like mentioned above try to go to the Mac app store and download it although if you aren't on lion it won't be available apple is really good about that kind of thing too.

XCode 4 not detect iPad

I have iPad 1 and i want to test my app on it.
i connect the iPad to the computer, and the IOS Device not change to the device name.
when i press on Run i get this msg:
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.
Any suggestion why it happen?
The top explanations for this error are
1) Your iPad is running an OS version newer than that supported by Xcode
or
2) You have not yet provisioned your iPad
Ok
I find the solution :
in IOS Deployment Target change it to the minimum version you want the app will work
You need to add the UDID of the device to your developer mobile provisioning profile.
If you have Xcode 4.2 this can be done actually automatically, else you'll have to do this manually (get the UDID, log into the developer portal, add the device's UDID to the devices list, at that device then to your developer profile, download and install that profile, select this profile as a developer profile for your current app)

Verizon iPhone Provisioning Problems

I upgraded to XCode 4 and a Verizon iPhone 4. After installing I am unable to sign and run anything on device. Yes I HAVE added it to the portal (using organizer and on the website). I've downloaded the certificates, and everything checks out.
I get the message: XCode cannot run using the selected device. No provisioned iOS devices are available. Connect an iOS device or choose an iOS simulator as the destination.
Could this be due to the Verizon iphone being 4.2.8 and not 4.3?
EDIT: Also, my ipad runs fine on it. Both devices show up in organizer, have the team provisioning certificates, and show up in the portal, etc...
-d
The fact that the iPhone is from Verizon has absolutely nothing to do with provisioning.
Try removing all of the certificates that are installed on the device currently, and try again. If the device is included in the certificates, then you should be good to go. Also ensure that you are running a supported iOS version on the device as set in your Xcode project.
The foremost thing you'll want to do is make sure your app's deployment target isn't iOS 4.3 and is instead something lower. (Base SDK should remain as Latest iOS.)

Can't install app on Device 3.1.2

I can install my app with the profile in my IOS4.0 device, but the same profile can't used to install on IOS 3.1.2 device.
My Xcode is SDK 3.2.3+IOS4(SDK 4).
BTW, i set my "Base SDK" = iPhone Device 4.0, "IPhone OS Deployment Target" is "iPhone OS 3.1.2".
The error info is "A valid provisioning profile for this executable was not found."
Thanks a lot.
Are you a member of the iOS Developer Program? You are not able to test on device until you sign up.
Yeah. I ve been there. I used to face this problem when I used to try and sync up .ipa file that I created out of sdk 4.0+ with an iOS 3.1.2 based device through iTunes. Apparently, iOS 3.1.2 devices have some bug (or maybe it is in the iTunes) that the profiles don't sync up along with the .ipa file in them automatically sometimes.
But before that, you have to ensure that the iOS 3.1.2 device is provisioned with the profile in the first place. If not, thats the problem. If it is, then in such cases, I used to drag and drop only the provisioning profile first into the iTunes, then do a sync with the device (Nothing will seem to happen in this sync. This is for installing the profile into the phone.). Then drag and drop the .ipa file into the iTunes and then perform another sync. That used to work for me.
If you are facing this problem with the .app, then too you should try above. That should work.