由于开发中用到FMDatabase 因此须要手动开启和关闭数据库,遇到上述状况是由于在使用fmdb时有时候一不当心没写好代码就会这样子啦,为何呢,其实呢,应该是在前面代码中有调用数据库并且并无调用[db close]就直接跳出结果来了,因此在前面的数据库操做中先运行[db close]再返回数据便可;mysql
davresponse libxml/parser.h file not found解决sql
Add ${SDKROOT}/usr/include/libxml2
as a header search path数据库
Undefined symbols for architecture i386: "_xmlFreeDoc", referenced from:ui
Go to Target -> Build Phases -> Link Binary with Library, click the plus sign and add "libxml2.dylib".net