It seems like every time I launch an Xcode project or 'Clean all Targets' the Active Executable resets to the iPad simulator.
Prior to the Xcode 3.2.6 release Xcode was defaulting to the iPhone Simulator or remembered my previous Active Executable... I've never noticed this behaviour because I generally do iPhone work. This has been bothering me sine the latest Xcode update (iOS 4.3 release) and is really irritating.
Similar questions/answers suggest setting the 'Targeted Device Family' of my Target to 'iPhone' - this has been done.
Is this new behaviour?
Is there anyway to change the default 'Active Executable'?
I tried some options and at the end I figured out a workaround that doesn't default to iPad simulator, but it uses SDK4.2 and always defaults back to the iPhone 4.2 Simulator.
I hope this works on your machine too and maybe sdk4.2 is good enough for you.
As I said, it uses SDK4.2, but imho it's better to use SDK4.2 than to switch to the iPad simulator each time you open/clean/... the project.
After you've compiled for the device (which switches the sdk to the base sdk) you have to redo the workaround.
Afaik there is no real solution for the problem. It exists in different variants for more than 6 months. Until the current xcode3 version for me it was switching back to iPhone simulator all the time. For other users it was defaulting to iPad.
There are more than a dozen threads in the apple dev forums. None of them offers a solution, or even a workaround.
You should file a bug at bugreport.apple.com and pray that xcode3 isn't considered end of life.
From How to change the default Xcode iphone simulator when testing and Why do my xcode builds always go to the iPad simulator instead of the iPhone simulator?:
Try changing the base SDK to 4.0 or higher.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With