0

我正在我的应用程序中集成 Facebook 登录。通过链接 Facebook 开发人员 但是当我编译时出现以下错误:

Undefined symbols for architecture i386:

"_sqlite3_bind_double", referenced from:
  -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o)   "_sqlite3_bind_int", referenced from:
  -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _trimDatabase] in FacebookSDK(FBCacheIndex.o)   "_sqlite3_bind_text", referenced from:
  -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _readEntriesFromDatabase:excludingFragment:] in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _removeEntryFromDatabaseForKey:] in FacebookSDK(FBCacheIndex.o)   "_sqlite3_close", referenced from:
  ___23-[FBCacheIndex dealloc]_block_invoke_0 in FacebookSDK(FBCacheIndex.o)   "_sqlite3_column_double", referenced from:
  -[FBCacheIndex _createCacheEntityInfo:] in FacebookSDK(FBCacheIndex.o)   "_sqlite3_column_int", referenced from:
  -[FBCacheIndex _createCacheEntityInfo:] in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _fetchCurrentDiskUsage] in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _trimDatabase] in FacebookSDK(FBCacheIndex.o)   "_sqlite3_column_text", referenced from:
  -[FBCacheIndex _createCacheEntityInfo:] in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _trimDatabase] in FacebookSDK(FBCacheIndex.o)   "_sqlite3_errmsg", referenced from:
  _releaseStatement in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o)
  _initializeStatement in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o)
  -[FBCacheIndex _readEntriesFromDatabase:excludingFragment:] in  FacebookSDK(FBCacheIndex.o)
   -[FBCacheIndex _fetchCurrentDiskUsage] in FacebookSDK(FBCacheIndex.o)
   ...   "_sqlite3_exec", referenced from:
   ___36-[FBCacheIndex initWithCacheFolder:]_block_invoke_0 in FacebookSDK(FBCacheIndex.o)   "_sqlite3_finalize", referenced from:
   _releaseStatement in FacebookSDK(FBCacheIndex.o)   "_sqlite3_open_v2", referenced from:
   ___36-[FBCacheIndex initWithCacheFolder:]_block_invoke_0 in FacebookSDK(FBCacheIndex.o)   "_sqlite3_prepare_v2", referenced from:
   _initializeStatement in FacebookSDK(FBCacheIndex.o)   "_sqlite3_reset", referenced from:
   _initializeStatement in FacebookSDK(FBCacheIndex.o)   "_sqlite3_step", referenced from:
   -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o)
   -[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o)
   -[FBCacheIndex _createCacheEntityInfo:] in FacebookSDK(FBCacheIndex.o)
   -[FBCacheIndex _fetchCurrentDiskUsage] in FacebookSDK(FBCacheIndex.o)
   -[FBCacheIndex _removeEntryFromDatabaseForKey:] in FacebookSDK(FBCacheIndex.o)
   -[FBCacheIndex _dropTrimmingTable] in FacebookSDK(FBCacheIndex.o)
   -[FBCacheIndex _trimDatabase] in FacebookSDK(FBCacheIndex.o)
   ... ld: symbol(s) not found for architecture i386

我还在项目的“构建设置”选项卡的其他链接标志中添加了-Isqlite3.0参考,但仍然出现错误。我究竟做错了什么?将 XCode 4.5 与 iOS6 一起使用。

4

1 回答 1

0

您还必须将您的应用程序链接到 sqlite 库或 CoreData.framework,具体取决于他们的文档说明需要什么。

于 2012-12-13T09:27:14.160 回答