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

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

Related

Can't install app on iOS 6.0.1 devices

I developing iphone app with xcode 4.5. I used TestFlight for ad hoc testing.
When upload build (.ipa) to TestFlight and get the installation link. i am able to install app on my iPad 5.0.1 using TestFlight installation link. But i tried to install app on iPhone 6.0.1 it gives me error message. "Won't install this app".
The problem is that XCode 4.5 doesn't support iOS 6.0.1. And hence your .ipa file isn't install in device with iOS 6.0.1. Solution to this is update your XCode to latest version which is 4.6. It'll solve the problem.
There is another solution.
The problem
The problem is the new OS does not contain proper info for old Xcode to load debug info, while this info can only be obtained by the latest Xcode.
Solution
Install the latest Xcode(currently is Xcode 4.6, you can get it from Mac AppStore).
Connect your device while the new Xcode is open.(No matter what the order of open Xcode first or connect your device first)
Press ⌘ + Shift + 2 to open Xcode organizer, click the device icon if the organizer appears not in device tab
Wait under see your device with iOS 6.0.1(or even iOS 6.0, iOS 6.1.1) to become green
Now your new OS has enough debug information for old Xcode
Connect this device to your old Xcode 4.5. You should not be able to send app to device.
Some disadvantages
You system will have 2 Xcode, if your old Xcode is also installed from Mac AppStore, you need to download the new Xcode from Developer center.
After you installed the new Xcode, you command line tools usually use the new Xcode as the default develop tools. Use xcode-select to switch to old Xcode's path.
Please do check the udid id for that Device, or include the udid again and download the new profile and then archive with that profile. It just because of udid

iPhone Cannot debug any new projects on my iPhone

When I click my iPhone into the USB port, I hear the clicking sound and on my project it shows checking dd symbols and a little progress bar appears. But, when I click on the drop down list, upper right hand corner, my device does not show up, still says any iOS device. When I click debug, a box comes up saying xcode cannot run using 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"
I checked to see what sdk version my project was using, it is 5.1.
On the organizer it says my iPhone is using software version 5.0.1.1,
Questions,
Do I have to upgrade my iPhone to 5.1?
I went to iTunes to upgrade it and they only had a option for 5.1.1, if I upgrade it to 5.1.1, will it still work with my xcode which has sdk 5.1 not 5.1.1
Any idea how to get my iPhone to work with the new projects created?
Also, the old projects are using sdk 5.1 and they run fine, could it be a different problem?
Just set the "Deployment Target" for targets and project to your device version.
To do this, click the project in the navigator -> info for project and summary for targets. There you find the deployment target.
Hope this helps
Try run a any XCode 3. And open him Organizer. Then will show a question about Collecting device. Press and reconnect a device. Must help. This helps in my case :)

How do i upgrade Xcode from 4.2.1 to 4.3.2?

Is there a way? I just need to run my app on my iPod which is 5.1 and my current version won't let me...?
This is very simple. I came across the same problem over the weekend when I upgraded my iPad and iPhone to the latest iOS 5.1. The version of Xcode I had installed at that time was not able to run applications for my devices after the upgrade.
After doing a few things I was able to successfully run applications on my upgraded devices. Below I present a few simple steps for you to follow:
1) Download the latest version of Xcode which currently is 4.3.2 which includes SDKs for Mac OS X 10.7 Lion and iOS 5.1 suitable do install your application onto your iOS device
http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12
2) During installation the installation window will ask you whether you would like to remove the previous version. Remove the previous version of Xcode and let it install the new version.
3) Once you have the latest version of Xcode installed you can run the Xcode application and open up your recent project.
4) Once you have your project opened, you may need to and certainly in my case I had to, code sign and point your project to the right development profile settings in the build settings.
5) Once all code signing is correct, on the top left you can select what you want to build to, make sure you have your iOS device connected and the button where it says iPhone simulator 5.1 to yourname's iphone
6) and then Xcode will build successfully onto your device
Download it from the app store.
http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12

iPhone shows Question mark (in place of its icon) on connecting to the Mac

I have a (dev) build for the iPhone App & I need to install it on the iPhone that has been given to me.
Now, I have added the iPhone as a device to the provisioning profile for the App.
But, When I connected the iPhone to my mac, Question mark appears in place of its icon (in XCode > Windows > Organizer). And the options under the device are limited to Device Logs and Screenshots.
And on right hand side detail appears : "The version of iOS on “iPhone” does not match any of the versions of iOS supported for development with this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; which is available here." Which clearly means that ihave to update my iOS SDK for the XCode that I am using.
Is there any way to do, like without updating the XCode for latest iOS SDK, I can install the App to the iPhone provided to me ???
You just build the app, and locate the .ipa file from the products. Then drag the ipa file into itunes and then sync it to your device.
If you have got the Xcode project..then you would have to update Xcode..that is the only solution..
but if you got the build in .ipa format.then you should register your device on www.testflightapp.com and then transfer that ipa from there to your device..

XCode 4 - Device does not show up in the schema "destination" dropdown

I can't for the life of me find out how to run applicaitons on a device (specifically, and iPhone 4) using XCode 4.
The documentation says to "Set the run destination to iOS device in the scheme editor and build and run your application."
The dropdown menu in the schema editor only has simulator options.
Could someone present a step-by-step method for running applications on devices using Xcode 4?
Using:
Xcode 4.0.2 (iOS 4.3)
iPhone 4.3.3
UPDATE
I ended up doing a series of restarts (Macbook Pro, iPhone 4, Xcode), did a few cleans and builds of the project, and set the "Base SDK" build attribute for the TARGET to "Latest iOS (iOS 4.3).
After that, the device appeared in the destination drop-down in the scheme editing menu.
(Thank you for your time septi!)
Be sure to Verify the BASE SDK used in your project. From the docs:
"
Note: If you are building to your development device, the Base SDK version number defined on your Xcode project must be greater than or equal to the software version number on your development device; otherwise Xcode cannot initiate a debugging session with the device. In that case, you will need to download and install the latest iOS SDK version that is greater than or equal to your device software version.
"
I had a similar problem. My phone has iOS 4.2.1
I downloaded a sample app and my phone did not show up as an option, only the simulators were listed.
So this is just a configuration issue:
To fix this you need to select the project, and:
(as noted above) Select Build Settings/Base SDK = (in my case) Latest iOS (iOS 4.3)
Select Summary: Devices: iPhone
Select Deployment Target: (in my case) 4.2
Now I get the following in the dropdown list of targets:
Myiphone (4.2.1, overriding Base SDK to 4.3)
Also watch out for the UIRequiredDeviceCapabilities property in the plist file. This can prevent a device from showing up sometimes.
I encountered this today in XCode 5 and tried the steps specified. Eventually, I found another solution that may be of use to future readers (Xcode 4 or otherwise).
Go to your project settings and select your target.
Select the "General" tab and scroll to Deployment Info.
Under "Deployment Target", make sure that your device's OS, or something lower, is specified.
---> Your device should now show up as available for debugging in the listing.
Came across this by checking the same device in another project. In that project, the device was listed just fine. When looking at the project settings between the two, the above difference was what stuck out and resolved the issue.
The "Deployment Target" in the project general settings needs to be <= your device, as Danny said above.
Be aware that when you create a new project in a new version of XCode, the default deployment target will be the latest OS release. If your iPhone is on a lower release, this means you either need to upgrade your iPhone, or install an older SDK into your XCode.
You can install an older SDK by copying it into the XCode package at location:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs