Wang Liang
Wang Liang

Reputation: 943

Running on device 4.2.1 with XCode 4.2

I have xCode 4.2, and I've done all the steps about the $99 ios dev program.

Now I need to test my project on my device, which is an iPhone4 in 4.2.1, but I failed to run the app on the device, where the xcode says Xcode cannot run using the selected device.

But in the Organizer my device seems well, because there is a green bulb nearby, like it is in the picture:

see the little bulb is green

and this is my device's version

Does anyone know the solution to this problem? Should I find something like 4.2.1 sdk to add to my Xcode? Thanks a lot for your answering!

Upvotes: 1

Views: 409

Answers (1)

Sanjay Chaudhry
Sanjay Chaudhry

Reputation: 3181

Download latest version of the SDK, the one supporting iOS 5.0.1. Use the latest SDK as the base SDK. This is not necessarily the oldest version of iOS your app will support.

If you'd like to support/test on devices running iOS 4.2, just go to project build settings and set "iOS Deployment Target" to 4.2.

Upvotes: 2

Related Questions