IOS packaging. A Files

Source: Internet
Author: User

1. Create a new framework&library Library. Cocoa Touch Static library under IOS . Then enter product name as Libsql


2, the libsql.h and libsql.m deleted. Import Ocsqlite.h and ocsqlite.c



3, change scheme, set to release version number



4.

Translate iOS device compilation execution. After success, a LIBLIBSQL.A file is generated under the build/products/release-iphoneos/of the folder. Note that this produces the. a file used by the real machine.
Select Iphonesimulator to compile once, and the same will produce a LIBLIBSQL.A file under build/products/release-iphonesimulator/. is the. A file used by the virtual machine.

Take a look at the differences between these two files, using the Lipo-info command. Open terminal.
into the corresponding folder.

Go to the corresponding folder.
Real-Machine: LIBLIBSQL.A file information.

Input file Liblibsql.a is not a FAT file
Non-fat FILE:LIBLIBSQL.A is architecture:armv7


Emulator's: LIBLIBSQL.A file information.

Input file Liblibsql.a is not a FAT file
Non-fat FILE:LIBLIBSQL.A is architecture:i386


Assuming that the real machine and the simulator are common, you need to merge the two files and use the command lipocreate XXXX/LIBLIBSQL.A xxxxx/liblibsql.a-output LIBSQL.A

Same ability to use Lipo-info to view this merged LIBSQL.A
Able to see architectures in the Fat FILE:LIBSQL.A are:i386 armv7

OK, cheers, pack up.


IOS packaging. A Files

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.