【问题标题】:Cordova build with Xcode SQLite pluginCordova 使用 Xcode SQLite 插件构建
【发布时间】:2013-08-22 06:44:24
【问题描述】:

我正在尝试在 xcode 上构建 cordova(电话差距 2.9)应用程序。我按照http://vimeo.com/56673251 的教程生成了煎茶应用程序。我能够使用cordova builder并获得xcode项目。但是当我构建我的 xcode 项目时,我得到一堆链接器错误,如下所示:

"_sqlite3_last_insert_rowid", referenced from:
      -[SQLitePlugin executeSqlWithDict:andArgs:] in SQLitePlugin.o
  "_sqlite3_open", referenced from:
      -[SQLitePlugin open:] in SQLitePlugin.o
  "_sqlite3_prepare_v2", referenced from:
      -[SQLitePlugin executeSqlWithDict:andArgs:] in SQLitePlugin.o
  "_sqlite3_step", referenced from:
      -[SQLitePlugin executeSqlWithDict:andArgs:] in SQLitePlugin.o
  "_sqlite3_threadsafe", referenced from:
      -[SQLitePlugin open:] in SQLitePlugin.o
  "_sqlite3_total_changes", referenced from:
      -[SQLitePlugin executeSqlWithDict:andArgs:] in SQLitePlugin.o
ld: symbol(s) not found for architecture i386

在这方面的任何帮助都会很棒。

【问题讨论】:

    标签: ios xcode cordova


    【解决方案1】:

    您需要添加 libsqlite 框架才能在您的 Xcode 中使用 SQLitePlugin。为此,请单击您的项目文件 --> 目标 --> 构建阶段 --> 将二进制文件与库链接 --> 按 + 按钮并添加 libsqlite3.dyliblibsqlite3.0.dylib

    现在,完成此操作后,清理项目并运行..应该这样做..

    祝你好运!

    【讨论】:

    • 非常感谢,这解决了我的问题。这真的很有帮助。
    • 现在当我尝试在模拟器上运行项目时,我遇到了运行时问题。我收到以下错误:Multi-tasking -> Device: YES, App: YES 2013-08-22 09:22:50.286 Velocity_iphone[23166:c07] *** Assertion failure in -[CDVConfigParser parser:parseErrorOccurred:], /用户/mupdivya/Documents/Apps/velocity-iphone/build/Velocity_iphone/ios/CordovaLib/Classes/CDVConfigParser.m:93 2013-08-22 09:22:50.287 Velocity_iphone[23166:c07] *** 由于应用程序终止未捕获的异常“NSInternalInconsistencyException”,原因:“config.xml 解析错误行 116 col 1”对此的任何帮助都会很棒
    • 我猜这与 Config.xml 有关。stackoverflow.com/questions/17828920/phonegap-ios-app-icon 这对您有帮助吗?
    • 问题解决了吗?
    猜你喜欢
    • 2017-01-27
    • 1970-01-01
    • 2019-07-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-15
    相关资源
    最近更新 更多