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