Verizon iPhone Provisioning Problems - iphone

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

Related

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)

iOS device testing via VMWare

I am trying to upload my iPhone app to my iPhone. I'm running Xcode and OS X on a VMWare virtual machine. Even though iTunes recognizes the iPhone when it's plugged in (implying that the USB connection between the virtual machine and the iPhone is working fine), no matter what I do, Xcode does not recognize the device.
The error is:
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.
Ideas?
'No provisioned devices' implies that you did not add your device to the provisioning portal, or you dont have the proper provisions and certificates installed.
Xcode and iOS are VERY strict about code signing, and so apps will not install on any device (besides the simulator) without the proper certificates and provisioning profiles. They're very easy to make, and only require an apple developer account available for $100.
From the device side:
Plug In your device, enter the organizer, then select your device and click the plus button in the organizer. It will ask for login credentials, then if all goes well, will add your device to your developer portal and possibly generate a wildcard provision.
From the computer side:
Enter the apple developer member center. Click 'iOS provisioning portal' and apply for and download the proper certifications. Then drag those certifications onto the xcode application icon and it will install them in your keychain and move them to the proper place within the organizer.

how to run apps in device in xcode 4?

Hay every one I'm working in iphone. recently I installed xcode 4 but i can not run my apps in device. I select run destination as ios device bu when I run my apps it say
"No provisioned iOS devices are available. Connect an iOS device or choose an iOS simulator as the destination." pls someone help me. any help will be appreciated. Thanx.
you need an active iOS developer program account. Otherwise you are only able to test your programs in the simulator!
to manage your devices, please read the following article:
Managing Devices and Digital Identities
If you don't have provisioning certificates and all that, do what Sascha said.
If you do, you might be having a problem that I ran into. I was trying to run apps on an iPod touch 2g with iOS 4.2, and I got the "no provisioned iOS devices" problem, even though I had a provisioned device connected. So I went into my project settings and changed "build target" from iOS 4.3 to iOS 4.2, and once I did that, my device showed up.

iPhone Ad Hoc Distribution Build does not work on 3.x Devices

We have made many Distribution Builds, so we are familiar with the daunting iPhone provisioning process.
We have entered all the devices into the Provision Portal, we have downloaded all certificates, and when we distribute our BETA build, it is only working for users on iOS 4.x. This is strange behavior because it wasn't doing this before.
Our iOS Deployment Target is set to: iOS 3.0
Base SDK is: iOS Device 4.1
Don't you think if we had a reference to a Base 4 SDK method, that it would at least install, but then crash? We are getting the infamous:
"The executable was signed with invalid entitlements"
This seems like an odd error when other all other devices that are on iOS 4 are working and all the iOS 3 devices are getting this?
We are stumped, thanks!
Are you doing a build and archive? You might want to try building it and manually zipping it along with the provision and sending that to your beta testers. I had this same problem with iOS 3 devices and zipping it manually seemed to work.
Versions of iOS prior to 3.2 cannot take advantage of an embedded provision file (included in the zip). For those devices, you have to install the .mobileprovision file separately by dragging it into the library in iTunes.

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.