当前位置:首页 > 数据库 > SQlite

解决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 来 源:http://stackoverflow.com/questions/20073146/mach-o-linker-error-xcode-5   解决方法2: 建立的XIB或者Storyboard中的控件连线没拉好,重新拉  

解决sqlite3_key的问题

标签:

本文系统来源:http://www.cnblogs.com/sandyzhang/p/5367701.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!