Monday, June 13, 2011

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

One day, I want to write a Iphone app for my son, then Just download the latest Xcode, and plug my Iphone to the Mac, supposedly,XCode should run the profile provisioning, I just click to Run the app. However, I get an error,
image

here, it’s a versioning issue, First, Click Window->Organizer, check Iphone OS

image

So for the Phone, It runs on 4.2.1,then make sure project building setting, using the same base level of SDK

image

by default, Xcode use the lastest sdk , that’s why you see the error.
Switch it to 4.2, then you will see you device in the target list,
image

No comments:

 
Locations of visitors to this page