Introduction to Using iOS Simulator

Source: Internet
Author: User

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.