Xcode with SDK 4.2 always starting iPad Simulator
Asked Answered
B

8

8

Why does Xcode, after updating to SDK 4.2, always run my application in iPad Simulator instead of iPhone??? If I select iPhone Simulator as active executable it doesn't store my preference and runs the iPad simulator after any new Build & Run.

Boar answered 29/11, 2010 at 23:30 Comment(6)
Are you sure it is the iPad simulator and not the retina simulator? Just wondering.Plano
I haven't tried the 4.2, but a few months ago I ran into something where if I chose 3.2.2 as the target OS it always launched the iPad, and if I did 4.0 for the OS it always did the iPhone simulatorPaedogenesis
lol. i have exactly the opposite problem. iphone sim is always started.Unappealable
Yes Kevin, it's the iPad Simulator wwith the possibility to scale 2x my app. Chris, iOS deployment target is 4.0.Boar
similar question here: #4322779Albuquerque
This only just recently started happening to me. All I can think of is that I have recently installed Xcode 3.2.6 with iOS SDK 4.3. Everything was going okay until I ran a build on my phone. Before that it was running on the iPhone simulator just fine for the last couple of days.Multicellular
L
2

I had the same Problem. But suddenly after an Update it disappeared. Do you have the newest Version of all Software( or tried turning it off and on again)?

If that doesn't works, I would suggest a reinstall. Solved many of my Problems...

Landed answered 12/4, 2011 at 21:26 Comment(0)
U
2

On XCode 3.2.6, you can go to "Project" menu -> "Set Active Executable" and select iPhone Simulator.

Urbanite answered 11/8, 2011 at 2:30 Comment(0)
D
1

Try to Build -> 'Clean All Targets'. Go into Release configuration, compile and then back to Debug. Now you can choose Iphone Simulator. For me it works.

Hope this help.

Driscoll answered 17/1, 2011 at 15:37 Comment(0)
M
0

Check the Active Executable setting, as well as the Simulator's setting for "Device."

Medicate answered 30/11, 2010 at 0:3 Comment(3)
I manually set... Active SDK: iOS Simulator 4.2 Active Executable: iPhone Simulator 4.2 Everything runs fine, but if I close Xcode and restart it, automatically switchs back to iPad Simulator 4.2.Boar
Same with me. After restarting Xcode it switches back to iPad Simulator 4.3.Multicellular
Ouch, Xcode 4 is not giving me any problem anymore... but I guess you're on Xcode 4, so I should be afraid of it.Boar
C
0

Check your .xcodeproj info. Navigate yourself in there and locate Simulator's Settings and choose 'iPhone' or 'iPad'

Hope this helps

Chamkis answered 30/11, 2010 at 2:12 Comment(2)
Sorry, but I can't find the Simulator's setting in the project info pane.Boar
how about the target <project name>.app? I only seen the xcode 4.2 once and never gotten to play with it since then.Chamkis
H
0

Removing all iPad devices from the device list in the organizer (Window Menu > Organizer) fixed it for me. But i know that's not a perfect solution. I hope Apple will fix this soon.

Habitable answered 20/12, 2010 at 7:44 Comment(0)
R
0

do yo have two xcode (or iphone sdk) installation on your machine? if yes then completely uninstall the xcode using this command -

sudo /Developer/Library/uninstall-devtools –mode=all

from all the locations (replace Developer with installed directory name)

and install the xcode 3.2.6 in developer directory

Relational answered 14/4, 2011 at 6:5 Comment(0)
I
0

You can go to Product -> Destination -> iPhone 6.1 Simulator.

It took me a while to figure out the reason, because even though you select the Device iPhone in Targets, it still opens the iPad emulator if you don't change the destination of your product.

Intercom answered 18/4, 2013 at 18:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.