- 新建module.map,放在程序目录某个文件夹下,例如放在本工程的/module/文件夹里.
- 进入项目Build Setting界面,在Header Search Paths中添加
${SRCROOT}/module/
即可.
Paste_Image.png${SRCROOT}表示工程源程序路径
module.map内容:
module sqlite3 [system] {
header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h"
link "sqlite3"
export *
}
module sqlite3simulator [system] {
header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/sqlite3.h"
link "sqlite3"
export *
}
网友评论