码迷,mamicode.com
首页 > 数据库 > 详细

解决sqlite3_key的问题

时间:2016-04-08 14:30:20      阅读:1561      评论:0      收藏:0      [点我收藏+]

标签:

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

解决sqlite3_key的问题

标签:

原文地址:http://www.cnblogs.com/sandyzhang/p/5367701.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!