Migrating old Xcode project to version 4.3

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!


Solution 1:

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

Solution 2:

Check to make sure the SDK for the targeted iOS version in the old project is still on your machine. For example, if you built the app against 4.0 and have since removed that SDK (upgrading Xcode may have done that), I would expect Xcode to present such an message.