Lipo-create SQY/IOS/IPHONEOS/LIBGAMEPLUSAPI.A sqy/ios/iphonesimulator/libgameplusapi.a-output SQY/iOS/ Libgamepus.a
where SQY/IOS/IPHONEOS/LIBGAMEPLUSAPI.A//is a real hangar.
SQY/IOS/IPHONESIMULATOR/LIBGAMEPLUSAPI.A//For simulator library
-output SQY/IOS/LIBGAMEPUS.A//For two merged post-storage paths
You can then enter the command to test for success
To view information about the. A file, enter the directory of the. A file in the terminal input: Lipo-info xxxx.a You can see the schema supported by the current. a file.
Lipo-info SQY/IOS/LIBGAMEPUS.A///Below is the output ARMV7 i386 has two on the expression simulator and the real machine all support which armv7 for the real machine architecture i386 for the simulator
Architectures in the Fat FILE:SQY/IOS/LIBGAMEPUS.A are:armv7 i386
For reference: http://hi.baidu.com/sxgg008/item/43ab4146e460e4bbde2a9f38
One of these two libraries is for the simulator to run. In fact, we can use Lipo to package these two files into a generic a file. The command is as follows:
Replace the/users/user/library/developer/xcode/deriveddata/uitab-dgfkluumuexoxhcapzidtsmdgqcj/build/products with your path.
Replace the/USERS/USER/DESKTOP/LIBPRINT.A with the merged path.
lipo-create/users/pjk1129/library/developer/xcode/deriveddata/print-dgfkluumuexoxhcapzidtsmdgqcj/build/ products/release-iphonesimulator/libprint.a/users/pjk1129/library/developer/xcode/deriveddata/ print-dgfkluumuexoxhcapzidtsmdgqcj/build/products/release-iphoneos/libprint.a-output/users/pjk1129/desktop/ Libprint.a
IOS merges. A files, making generic static libraries