3 ms·
On my system, there is a file at /Applications /Xcode.app /Contents /Developer /Platforms /iPhoneSimulator.platform /Developer /Applications
by Someone 14y ago
On my system, there is a file at
/Applications
/Xcode.app
/Contents
/Developer
/Platforms
/iPhoneSimulator.platform
/Developer
/Applications
/iPhone Simulator.app
/Contents
/Resources
/Devices
/iPhone (Retina).deviceinfo
/info.plist
That file contains (among others), these fragments:
<key>height</key>
<string>960</string>
<key>width</key>
<string>640</string>
I haven't tried it, but that is where my hacking would start. The simulator app is signed. It may not be possible to use it after editing it. Mu next attempt would be to sign it with your own key. If that fails, too, I would try and intercept the reading of the file. It may be easiest to put Xcode on some user-mode filesystem that you control.
- frankus 14y agoTried it, and there's apparently more to it than that. When I change the resolution that "Device" disappears from the Hardware submenu. Other changes to the plist, (e.g. the name of the device) leave it working.