XCode 4 not detect iPad - iphone

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)

Related

Selected device could not run on Xcode 4.6

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.

iPhone app not runing on Real 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.
How do I fix this Questions.....?
Deployment Taeget :
4.0 Base SDK
Latest 5.1
You should make sure that you choose the device from the list of schemes and from project settings you should have a valid certificate for debug settings
UPDATE : An also it will not list the device if its IOS is below the deployment target

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

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.