解决sqlite3_key的问题

报错内容显示如下:
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 来
 
解决方法2:
建立的XIB或者Storyboard中的控件连线没拉好,重新拉
 
原文地址:https://www.cnblogs.com/sandyzhang/p/5367701.html