由於開發中用到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