问题
I'm using the iOS Simulator to test how my PhoneGap application behaves across devices (iPhone 4, iPhone 5, iPhone 6 etc). I don't have each of these physical devices, so I'm limited to using the Simulator.
I can use PhoneGap's 'Device' plugin to get the model number, but in the Simulator it is listed as 'x86_64' every time, regardless of what device it is simulating. (The one physical device that I do have, an iPhone 6, it is correctly listed as 'iPhone7,2' when the app is tested on the device.)
Is there a way to make the Simulator return the model number for the resolution I'm currently running?
来源:https://stackoverflow.com/questions/28641516/ios-simulator-always-shows-x86-64-regardless-of-iphone-model-being-simulated