I am developing an application with Phonegap/Cordova which should target iPhone only. I set Targeted Device Family on the project settings accordingly:

However, when I run the application on the simulator, or on a test device, it still keeps opening fullscreen on iPad, while I thought it should display in a small window at iPhone resolution.
Any suggestions on how to fix this problem?
XCode’s “Target Settings” were overriding “Project Settings”.
More details on this matter here:
XCode Edit Project Settings vs Edit Active Target