Why does Xcode 4.1 say that the iPad application can only work in iPhone Simulator?

I have an application for the iPad (the target device family is iPad, architecture is armv7), but Xcode offers both iPhone simulators and an iPad for deployment in the drop-down list of the circuit / device. If I create a new project for iPad only from scratch, only iPad Simulator will be available as a deployment target.

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

+6
source share
4 answers

Just solved it in our application; this was due to the fact that the subproject was configured on the iPhone. If you have any subprojects, check their target settings; because, apparently, this can affect the choice of the top-level circuit.

+9
source

If you have a test goal , make sure that in the build settings for it, the Target Device Family is set to iPad , as in the target application. This may sound silly, but I have seen it before.

Then, as indicated in other answers, check the same parameter for any subproject target that you could include in the application project.

+3
source

Do a quick search of your target build settings for "Universal" and change it if necessary on the iPad. This is ONLY the reason why this is happening. The only thing I can offer is to restart the computer. Sometimes Xcode even gave me Mac settings for iOS apps! If none of this works, well, if it doesn't break, don't fix it, as if you can build it and test it in iPad Simulator, what's the problem?

0
source

This can happen if you initially launched the universal application and later changed it without reconfiguring the settings. Just change the settings (click on the main folder of the project and update the settings), and there should be no problems. You can also just create a new iPad app and copy all your files there. You can choose the iPad device family to deploy your application, and it should be aware of this every time you launch it, so you don’t need to change it or find out why it allows you to deploy it on both devices; while it works, continue programming and testing.

0
source

Source: https://habr.com/ru/post/896653/


All Articles