【问题标题】:How to use SQLite in Swift 3.0?如何在 Swift 3.0 中使用 SQLite?
【发布时间】:2018-10-24 17:19:41
【问题描述】:

我无法在我的项目中使用 SQLite 框架。当我收到图像中显示的错误时。谁能帮我解决这个错误。

注意:项目在Swift 3.0,我使用Cocoapod安装SQLite库

【问题讨论】:

标签: ios swift3 sqlite.swift


【解决方案1】:

修复了问题,

由于 CSQLite 模块 正在尝试从默认路径 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator 访问 sqlite3 库。 sdk/usr/include/sqlite3.h

但是,就我而言,我安装了两个命名不同的 xcode 应用程序。所以我把 Xcode.app 改成了 Xcode 8.2.1.app

喜欢 /Applications/Xcode 8.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/sqlite3.h

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-17
    相关资源
    最近更新 更多