报错内容显示如下:
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中的控件连线没拉好,重新拉