[英]Nutiteq issue with spatialite on iOS, init exception - sqlite3_auto_extension EXEC_BAD_ACCESS address 0x300
I create swift project. 我创建快速项目。 add SpatialDBKit pod and some other lib.
添加SpatialDBKit pod和其他一些lib。
When i try to open database with 当我尝试使用打开数据库
let db = SpatialDatabase(path: NSBundle.mainBundle().pathForResource("myfile", ofType: "spatialite") )
I get EXC_BAD_ACCESS (code=1,address=0x300) 我得到EXC_BAD_ACCESS(代码= 1,地址= 0x300)
spatialite_init (int verbose)
{
/* used when SQLite initializes as an ordinary lib
OBSOLETE - strongly discuraged !!!!!
*/
#ifndef OMIT_GEOS /* initializing GEOS */
initGEOS (geos_warning, geos_error);
#endif /* end GEOS */
sqlite3_auto_extension ((void (*)(void)) init_spatialite_extension);
spatialite_splash_screen (verbose);
}
at sqlite3_auto_extension method call. 在sqlite3_auto_extension方法调用中。
Please note that i open it with FMDB without any issue. 请注意,我使用FMDB打开它没有任何问题。
UPDATE: 更新:
I found that i have issue pod. 我发现我有问题豆荚。 when copy file directly from github and replace, issue fixed!
当直接从github复制文件并替换时,问题已修复!
I see that pod has issue. 我看到豆荚有问题。
see https://github.com/andreacremaschi/SpatialDBKit/issues/21 参见https://github.com/andreacremaschi/SpatialDBKit/issues/21
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.