Introduction to the use of IOS Simulator simulator

Source: Internet
Author: User

The iOS Simulator is a helper tool that can be used when developing a program on the iOS platform under Mac. iOS Simulator is part of the Xcode, Xcode is Apple's own iOS development program that can be downloaded for free!

The IOS Simulator is located in the/developer/platforms/iphonesimulator.platform/developer/applications folder. Typically, you do not need to start iOS simulator-it automatically starts when you run (or debug) an application Xcode. Xcode will automatically install the application on the iOS simulator.

IOS Simulator is not an emulator

IOS Simulator is an emulator, but not an emulator. What is the difference between the two? The simulator mimics the behavior of the actual device. Iphonesimulator will imitate the real behavior of the actual Ios/ipad device. But the simulator itself uses various libraries on the MAC, such as QuickTime, to render the effect consistent with the actual iphone. In addition, the application tested on the emulator compiles to x86 code, which is the byte code that the emulator understands. The actual iphone device uses arm code.

iOS supported (analog) devices

My iOS 5.1 simulator here has 4 supported devices:

That

Ipad

IPad (Retina)

Iphone

IPhone (Retina)

How to open the iOS emulator

Xcode iOS Emulator (to debug the current program) automatically when you compile it

When you debug the iOS program in Xcode, tap the corresponding run:

Xcode will compile the current iOS project, and after the compilation succeeds, it will automatically and call the iOS emulator and run the corresponding compiled program:

Note: Your current project, using the corresponding simulator needs to be set to the corresponding simulator.

For example, my project here is for the iphone, so set it for the iphone 5.1 Simulator:

Manually open the iOS simulator

If necessary, of course, you can manually open the corresponding iOS simulator.

Through Xcode->open Developer Tool->ios Simulator:

You can open the corresponding iOS emulator.

About the interface in the iOS emulator

A total of three interfaces:

Here is the third interface: application

This is the second interface: the iphone main function interface

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.