Introduction to Using iOS Simulator
The iOS simulator is an auxiliary tool that can be used when developing programs under Mac and iOS platform programs. IOS Simulator is part of Xcode. Xcode is Apple's own iOS development program. It can be downloaded for free!
IOS Simulator is located in the/Developer/Platforms/iPhoneSimulator. platform/Developer/Applications folder. Generally, iOS Simulator does not need to be started directly-it is automatically started when Xcode runs (or debugs) applications. Xcode automatically installs the application on iOS Simulator.
IOS Simulator is not a Simulator
IOS Simulator is a Simulator, but not a Simulator. What is the difference between the two? The simulator imitates the behavior of the actual device. The iPhone simulator imitates the actual behavior of iOS/iPad devices. However, the simulator itself uses various libraries on Mac (such as Quicktime) for rendering so that the effects are consistent with those of the actual iPhone. In addition, applications tested on the simulator will be compiled into x86 code, which is the bytecode that the simulator can understand. The actual iPhone device uses ARM code.
Devices supported by iOS (simulated)
The iOS 5.1 simulator here supports four devices:
That is:
IPad
IPad (Retina)
IPhone
IPhone (Retina)
How to enable the iOS Simulator
After Xcode compiles the iOS project, it automatically opens the iOS simulator (to debug the current program)
When debugging the iOS program in Xcode, click the corresponding Run:
Xcode compiles the current iOS project. After the compilation is successful, it automatically calls the iOS simulator and runs the compiled program:
Note: In your current project, the corresponding simulator must be set as the corresponding simulator.
For example, if my project here is for the iPhone, set it to iPhone 5.1 Simulator:
Manually enable iOS Simulator
If necessary, you can also manually open the corresponding iOS simulator.
Use Xcode> Open Developer Tool> iOS Simulator:
To open the corresponding iOS simulator.
About the interface in the iOS Simulator
There are three interfaces:
The following is the third interface: Application
This is the second interface: The main function interface of the iPhone