. A static library architecture synthesis,. a static Architecture
1. If the architecture generated by the class library is inconsistent with the architecture of the corresponding device, an error will be reported.
If the class library is used in the project and an error similar to the Undefined symbols for architecture x86_64 (there are Undefined symbols in the x86_64 architecture) occurs, the error is a link error. There are only two types of errors:
1> the specified class library is not imported to the project.
2> the Class Library Architecture Used in the project (the device generated by the class library) is different from the device running the project.
Ii. CPU architecture:
1. simplified instruction set architecture: Mainly used for mobile devices, mobile phones/tablets, representative vendors: ARM, IBM
2. Complex Instruction Set architecture: Mainly used for PCs, representative vendors: Intel and AMD
Iii. architecture involved in iOS:
1. Real machine:
Armv7: iPhone4s
Armv7s: iPhone5 and iPhone5C
Arm64/armv8: iPhone5s or above
2. simulator:
I386: iPhone4s, iPhone5, and iPhone5C
X86_64: iPhone5s or above
4. during development, when using the Class Library:
1. indicate that different device types use different class libraries and select
2. synthesize the architecture (that is, synthesize the five. a files into a. a file without considering the device type. Disadvantages: the APP package will be relatively large)
5. How can I view the architecture of the class library?
Use the file path of the command line tool lipo-info.
6. How can we synthesize the architecture?
1. Use the command line tool lipo-create class library file 1 path class library file 2 path-output generated class library path
Example: lipo-create XX/XX. a KK/KK. a-output ZZ/ZZ.
If ZZ/ZZ. a is directly written to ZZ. a, the generated class library is in the home directory.
2. Set Xcode to automatically generate the class library file of the merged architecture.
However: 1. After setting, only the real machine or simulator class libraries can be generated.
2. When generating the synthesis architecture of a real machine, there is no armv7s type by default-> modify settings to add the armv7s class library
3. Use method 1 to synthesize the architecture class libraries of the real machine and Simulator
4. Advantages of Method 1: method 1 needs to be manually synthesized four times, and method 2 only needs to be manually synthesized once.
Add armv7s class library settings:
1,
2,