IOS – Migrating old Xcode project to version 4.3

iosxcode

Today I moved to the latest version of Xcode (4.3). I tried to open an old project and when I try to launch the iOS simulator it returns me the following error:

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.

I also tried to create a new project and there I am able to launch the simulator.

How can I fix this problem and run all my old projects again?

Thanks!

Best Answer

The problem is that Xcode 4.3 ignores the schema you had selected in older versions, and automatically sets it to run on device for iOS projects. Since you don't have an eligible device attached to your computer, you get this error. The fix is simple. In the toolbar, click on the menu which says iOS Device and choose one of the simulator options instead.

enter image description here