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