Change the iPhone Simulator to 640×1136 Resolution
With rumors and some new evidence suggesting the new iPhone display will have a 640×1136 screen resolution, developers and designers may find it interesting to alter the iOS Simulator to accomodate such a resolution. This can be done fairly easily by adding a basic text file to a directory, and then altering a plist file within the the iOS Simulator to add the new dimensions.
- Grab this text file, save it as plain text named “File.txt” into ~/Library/Application Support/iPhone Simulator/
- Now locate the iPhone Simulator and modify the plist file stored at the following location – you will need admin privileges to edit the plist file:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/Resources/Devices/iPhone (Retina).deviceinfo/Info.plist
- Add the following keys near the bottom of the plist but before the closing dict and plist tags, like so:
- Relaunch iOS Simulator and select iPhone Retina as the device type to see the changes
This was discovered by Cedric Luthi and works with the latest versions of Xcode.
By comparison, the current iPhone 4 and 4S retina display is 3.5″ and has a resolution of 640×960 pixels.
Hi,
Can this be done to view the resolution of Iphone 4S in the simulator (640×960)? The simulator only shows the iPhone 3 resolution, which makes my graphics way to big in the simulator AND the final app.
Two things: You say ‘Grab this text file, save it as plain text named “File.txt”…’
Where can I find “this text file”?
Also:
In Xcode 4.3.2 the p-list file doesn’t match up with the one you have here…perhaps I’m no longer on the latest version? :X
Off-topic question: Is it possible to run purchased apps in the simulator? (I have been looking for a way to run Apple’s Remote.app on a desktop.)
No you can’t run apps on the simulator unless you created them in Xcode.