【问题标题】:Could not run xamarin application with SQLite.NET-PCL on iPad [duplicate]无法在 iPad 上使用 SQLite.NET-PCL 运行 xamarin 应用程序 [重复]
【发布时间】:2017-01-09 07:49:10
【问题描述】:

我创建了一个带有简单测试的新应用程序,每次使用 iOSSimulator 都可以正常工作,但是当我尝试在 iPad 上运行时却无法正常工作。在我的应用程序中,我只有 nuget 安装的 SQLite.NET-PCL 3.1.1,我的控制器只调用创建数据库。

在 iPad 上尝试时,控制台给我以下错误:

MTOUCH: error MT3001: Could not AOT the assembly '/Users/delogic/Projects/iosSingleView/iosSingleView/obj/iPhone/Debug/build-ipad3.1-9.3.2/mtouch-cache/Build/SQLite.Net.Platform.XamarinIOS.Unified.dll'

日志中的以下几行引起了我的注意:

Undefined symbols for architecture armv7:
      "_sqlite3_busy_timeout", referenced from:
          wrapper_managed_to_native_SQLite_Net_Platform_XamarinIOS_SQLiteApiIOSInternal_sqlite3_busy_timeout_intptr_int in SQLite-5f40c7.o
      "_sqlite3_close", referenced from:
          wrapper_managed_to_native_SQLite_Net_Platform_XamarinIOS_SQLiteApiIOSInternal_sqlite3_close_intptr in SQLite-5f40c7.o
      "_sqlite3_errmsg16", referenced from:
          wrapper_managed_to_native_SQLite_Net_Platform_XamarinIOS_SQLiteApiIOSInternal_sqlite3_errmsg16_intptr in SQLite-5f40c7.o
      "_sqlite3_finalize", referenced from:
          wrapper_managed_to_native_SQLite_Net_Platform_XamarinIOS_SQLiteApiIOSInternal_sqlite3_finalize_intptr in SQLite-5f40c7.o
      "_sqlite3_open_v2", referenced from:
          wrapper_managed_to_native_SQLite_Net_Platform_XamarinIOS_SQLiteApiIOSInternal_sqlite3_open_v2_byte___intptr__int_intptr in SQLite-5f40c7.o
    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

我猜由于某种原因,我的文件缺少一些方法。有人有同样的问题吗?我将上传项目示例和完整日志。

link for log and project download

【问题讨论】:

    标签: c# ios sqlite xamarin.ios cross-platform


    【解决方案1】:

    我解决了这个问题。它是 xamarin studio 上的一个错误,当我选择更新通道为 alpha 时得到修复

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-14
      • 2014-06-24
      • 1970-01-01
      • 2011-07-17
      • 1970-01-01
      相关资源
      最近更新 更多