How to package a static library. A file IOS

Source: Internet
Author: User

The code is ready to be packaged into the SDK, and the following is the FRSDK code that will be packaged (FRSDK.h exposes someone else to call)

1. Create a new project (Xcode File-new-project)

2. Remove the contents of the red box below

3. Copy the FRSDK code that was debugged in the original project to this project for

4. Next we choose to come up with a header file that needs to be exposed

Right-click to move to public.

5. Next we configure the project file

6. After the configuration we can choose the simulator to run, after the run we find the following the first red arrow generated. A file (turn black) Right-click the show in Finder, you can get the emulator's packaging SDK from the file pointing to the red arrow on the right. Rename this libfrsdk.a to libfrsdk1.a copy to desktop. Copy the FRSDK.h from the local include in USR to the desktop

7. The. A file generated at this time only applies to the simulator, if we need a real machine can use the. a file, in the same way on the real machine run on it, and then do the same operation to get the two red Arrows pointing to the file can get the real machine Packaging SDK, the libfrsdk.a renamed to libfrsdk2.a Copy to the desktop

8. You can then merge two. a files,

Open Terminal input

lipo-create/users/huangzengsong/desktop/libfrsdk1.a/users/huangzengsong/desktop/libfrsdk2.a-output/users/ HUANGZENGSONG/DESKTOP/LIBFRSDK.A Enter

9. The following two red Arrows point to the file is the final generated SDK, create a new folder Frsdk and then drag the two things in, other projects want to call, the FRSDK folder into the project can be

Above original, forwarding copy please indicate the original article link, thank you

How to package a static library. A file IOS

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.