Мне удалось получить путь в файл, выполнив:
Код: Выделить всё
NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
NSString *crsqlitePath = [resourcePath
stringByAppendingPathComponent:@"Frameworks/crsqlite.framework/crsqlite"];
Код: Выделить всё
/Users/osp/Library/Developer/CoreSimulator/Devices/2542B85E-15F0-4262-92A8-C20FC7C9908A/data/Containers/Bundle/Application/EDF0FBCE-FCAA-466D-89D5-FE197FF41B1D/OPSQLiteExample.app/Frameworks/crsqlite.framework/crsqlite
Код: Выделить всё
char* errMsg;
const char* crsqliteEntryPoint = "sqlite3_crsqlite_init";
sqlite3_load_extension(db, crsqlitePath.c_str(), crsqliteEntryPoint, &errMsg);
Код: Выделить всё
not authorized
Подробнее здесь: https://stackoverflow.com/questions/783 ... ad-extensi