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