What we are explaining today is the meaning of the valid architecture parameter of the Xcode editor, literal translation: An effective architecture (that is, CPU architecture). Xcode is an integrated development environment (non-open source) that Apple provides to developers to develop applications for Mac OS X,ios. It runs under Apple's Mac operating system. iOS apps are now basically compiled with LLVM, and Xcode provides various settings to help you set the parameters for your compilation. One of these is to set the architecture of the compilation, which includes the following parameters: Architectures, Valid architectures, and build Active Architecture only. Some novice to these parameters often do not know how to choose, here is a brief introduction. Architectures: This refers to the set of instructions you want to support, such as: armv7,armv7s, or you can use a parameter such as $ (archs_standard_32_bit) Valid architectures: This refers to the set of instructions you are about to compile Build Active Architecture only: whether to compile only the instruction set that is applicable to the current device (if this parameter is set to Yes, then if you debug with iphone 6, a binary that supports the arm64 instruction set is eventually generated; if you compile with iPhone4 , and eventually generates a binary that supports the ARMV7 instruction set, so it is generally set to Yes,release in debug mode. Here, we compile the final supported instruction set that is the intersection of the two parameters of architectures and valid architectures. Also, make a list of the current instruction sets for common iOS devices: Armv8/arm64:iphone 6 (Plus), IPhone 5s, ipad Air (2), Retina ipad Mini (2,3) Armv7s:iphone 5, IPhone 5c, IPad 4 Armv7:iphone 3GS, iphone 4, iphone 4s, IPod 3g/4g/5g, ipad, ipad 2, ipad 3, ipad Mini Armv6:iphone, IPhone 3G, IPod 1g/2g |