Why does Xcode launch the iPhone simulator when the iPad simulator is selected?
When I open an existing iPad project in Xcode and "Build and Run" it, it launches the iPhone simulator when I have the iPad Simulator set as the active executable? Inside the iPhone simulator is a shrunken version of the iPad. What is going on? How do I get it to run the iPad simulator?
Note: When the iPhone Simulator is running, I double checked the Hardware->Device setting and it's set to iPad. This is what 开发者_运维问答I want, of course, but I don't want it to run the iPhone simulator. I seem to recall it used to run an iPad simulator. Is there such a thing or am I tripping and there is only an iPhone simulator that can run iPad apps?
Thanks in advance for your help!
The iPhone simulator and the iPad simulator are the same application. If you're just concerned about the size of the iPad, go to Window -> Scale and choose "100%".
In the top left hand corner of xcode, next to the stop button, you will see your scheme. Click the iPad Simulator button and change it to iPhone.
精彩评论