"Go" iOS static library a file making process

Source: Internet
Author: User

Original URL: http://www.jianshu.com/p/3439598ea61f

1. New Cocoa Touch Static Library project
New Project 2. Parameter settings for Xcode
    • "Build Active Architecture only" is set to "NO"
    • "iOS Deployment Target" is set to "iOS 7.0", which means that the compilation of IOS7.0 above system version is supported
      Build Active Architecture only
      IOS Deployment Target
      Build phases uses the default settings
3. header file Add interface
. h file Add interface
. m file code implementation 4. Compile and build the static library. a file
    • Select the real machine and the IPHONE6 emulator to compile separately
    • First find the. A file that was successfully generated by the real machine compilation, Show in Finder
    • Then find the. A file that was successfully compiled by the Iphone6 emulator (in the Real Machine directory command+ (the up-arrow key) to return to the previous-level folder path)
      The Show in Finder found the successful. A file for the real machine compilation
      For the real machine, the simulator is compiled successfully. a file
5. Synthesis of the general version of the Static library. a file
    • Using a terminal for compositing operations
      Lipo-create libstatictest.a (real machine. A file path) libstatictest.a (Iphone6 Simulator. A file path)-output save path/STATICTEST.A
      Compositing using a terminal
    • Synthetic. A file (supports IOS7 above system, real machine and simulator)
      Synthetic static library file for general edition
6. Test your own made static library files

The. h and the synthesized generic version of the. A file are imported into the test project to implement the interface provided by the. H.


Test success



Wen/igeekxi (author of Jane's book)
Original link: http://www.jianshu.com/p/3439598ea61f
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author".

"Go" iOS static library a file making process

Related Article

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.