您的位置:首页 > 数据库

解决sqlite3_key的问题

2016-04-08 13:27 435 查看
报错内容显示如下:
ld: warning: ignoring file /Users/rowling/Library/Developer/Xcode/DerivedData/zhinengbangongpingtai-gylhkhpyjmmjkagiimejuaduiboa/Build/Products/Debug-iphonesimulator/libsqlcipher.a, file was built for archive which is not the architecture being linked (i386): /Users/rowling/Library/Developer/Xcode/DerivedData/zhinengbangongpingtai-gylhkhpyjmmjkagiimejuaduiboa/Build/Products/Debug-iphonesimulator/libsqlcipher.a

Undefined symbols for architecture i386:

"_sqlite3_key", referenced from:

-[FMDatabase setKeyWithData:] in FMDatabase.o

"_sqlite3_rekey", referenced from:

-[FMDatabase rekeyWithData:] in FMDatabase.o

ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方法1:
Change the Buid setting ---> Architecture ---> Build Active Architecture only ---> Yes
源:http://stackoverflow.com/questions/20073146/mach-o-linker-error-xcode-5

解决方法2:
建立的XIB或者Storyboard中的控件连线没拉好,重新拉
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: