Two ways to compile and package iOS programs

Source: Internet
Author: User

This option is actually used to set how we want to package our code.

Architectures: List of target devices to be compiled by the project, set the way to package our code

The first way: a code package that contains two architectures (32bit, 64bit), but this packaging method can only run in iOS6 above the system, that is, the packaging method, the phone is not required, but the system is required.

The second way: a code that contains only one schema (32bit), which is not required for phones and systems, but reduces the performance of a 64-bit system's phone

If you want to be compatible with iOS5 and lower systems, you can only hit 32-bit packages, and if it is a package with two schemas, the system will run the corresponding number of bits according to the number of system bits.

Problem:

1. Why can I run the code for both architectures?

Because 64-bit systems have two sets of frameworks, one set is 32-bit, the set is 64-bit, and the system calls the framework of the corresponding number of bits as the underlying support based on the code of the architecture.

2. Why is the 64-bit system running 32-bit code that lowers the phone's performance?

Because the 64-bit system runs two schemas at the same time, the system loads two sets of frameworks into memory, so it consumes more memory, which reduces the performance of the phone.

Valid architectures: The list of devices that the project might support, the intersection of the list and the architectures list, will be the list of devices supported by the binary code that Xcode is ultimately generating

Build Active Architectures only: Sets whether to compile only the corresponding code package for the device that is currently in use.

Two operating modes of the program:

Debug mode: For your own

Release mode: Customer-facing

We can use these two modes to achieve the simplification of the code, we can in the debug mode, the output of some of our development to use the log information, and then in release mode, the release of the program, so in the release of the program will not have a lot of output log information.

Two ways to compile and package iOS programs

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.