How to create your own static library

Source: Internet
Author: User

How to create your own static library

 

Package some implementation code that you do not want to expose to the user.Library (for example: Baidu MapSDK,WriteSDK)

 

You need to create a static library project to implement code logic and complete code packaging (.Library)

1.Create a static library project

 

 

Create a test project (Use.Library)(Set.Import the library and necessary header files to the test project)

 

Static library packaging (1, Generated based on the simulator.Library,This.The library is computer-basedCPU(I386) Logical generation,Cannot be used on a real machine

Based on a real machine.Library (Armv6, armv7Smart phoneCPULogic) cannot be used in the simulator environment)

 

 

Merge two static databases into one static database

 

S/qianfeng/library/developer/xcode/deriveddata/mystaticlib-drwhnikdemohobcyujqpkdslsama/build/products/debug-iphoneos/libmystaticlib. a/users/qianfeng/library/developer/xcode/deriveddata/mystaticlib-drwhnikdemohobcyujqpkdslsama/build/products/debug-iphonesimulator/libmystaticlib. a-output allinonelib

 

End

How to create your own static library

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.