Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Xcode 4.1 say my iPad only app can run in the iPhone Simulator?

Tags:

xcode

iphone

ipad

I have an iPad-only app (targeted device family is iPad, architecture is armv7), but Xcode offers both iPhone & iPad simulators to deploy to in the scheme/device dropdown. If I create a new iPad-only project from scratch, only iPad Simulator is available as a deployment target.

Why does my iPad-only project show iPhone Simulator as a device option?

like image 646
memmons Avatar asked Sep 05 '11 15:09

memmons


2 Answers

Just resolved this in our app; it was due to a sub-project being set to target iPhone. If you have any sub-projects, do check their target settings as well; because apparently it can affect your top-level scheme selections.

like image 101
rvalue Avatar answered Nov 15 '22 07:11

rvalue


In case you have a tests target too, make sure in its build settings that the Targeted Device Family is set to iPad as in your app's target. This might sound silly, but I have seen it before.

Then, as stated in the other answers, check the same option for any sub-project's target you may have included in your app's project.

like image 20
veducm Avatar answered Nov 15 '22 09:11

veducm