Search code examples
iphonexcode4

Xcode cannot run using the selected device when trying to build on my device SDK 4.3, iPhone 3G 4.2.1


I get this message and i do believe i know where the problem is.

I realized that i have IOS 4.2.1 on my iPhone (3G) and running SDK 4.3, i would guess this is the root to the problem.

As this is an old iPhone it does not support 4.3.

Is there anything i can do if i want to test on this device?


Solution

  • Set the iOS Deployment Target down to 4.2. You can find this in Project -> Edit Project Settings, Build tab, in the Deployment section.

    enter image description here