IOS merges. A files, making generic static libraries

Source: Internet
Author: User

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

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.