【发布时间】:2018-11-29 23:14:52
【问题描述】:
我正在尝试创建我的第一个 Cocoapod,并且到目前为止我的 pod 设置得很好,但是当我尝试 lint 或 push 时,我得到了一堆构建错误。
包含 swift 代码的 pod 使用 sqlite3 库。
我已将它链接到 Xcode pod 项目的构建阶段,我可以从那里构建良好,但是当在我的 pod 上运行 pod repo push 时,它会尝试构建并失败,并出现一堆“使用未解析的标识符”错误,大概是因为没有依赖。
我还在我的 podspec 文件中添加了s.library = 'sqlite3',但没有运气。
这是一个sn-p
- ERROR | [iOS] xcodebuild: SQLift/SQLift/Classes/PreparedStatement.swift:51:16: error: value of type 'String' has no member 'isValid'
- ERROR | [iOS] xcodebuild: SQLift/SQLift/Classes/PreparedStatement.swift:61:16: error: use of unresolved identifier 'sqlite3_bind_null'
- ERROR | [iOS] xcodebuild: SQLift/SQLift/Classes/PreparedStatement.swift:61:55: error: use of unresolved identifier 'SQLITE_OK'
- ERROR | [iOS] xcodebuild: SQLift/SQLift/Classes/PreparedStatement.swift:62:41: error: use of unresolved identifier 'sqlite3_errmsg'
- ERROR | [iOS] xcodebuild: SQLift/SQLift/Classes/PreparedStatement.swift:67:16: error: use of unresolved identifier 'sqlite3_bind_int'
- ERROR | [iOS] xcodebuild: SQLift/SQLift/Classes/PreparedStatement.swift:67:76: error: use of unresolved identifier 'SQLITE_OK'
- ERROR | [iOS] xcodebuild: SQLift/SQLift/Classes/PreparedStatement.swift:68:41: error: use of unresolved identifier 'sqlite3_errmsg'
- ERROR | [iOS] xcodebuild: SQLift/SQLift/Classes/PreparedStatement.swift:73:16: error: use of unresolved identifier 'sqlite3_bind_text'
- ERROR | [iOS] xcodebuild: SQLift/SQLift/Classes/PreparedStatement.swift:73:95: error: use of unresolved identifier 'SQLITE_OK'
- ERROR | [iOS] xcodebuild: SQLift/SQLift/Classes/PreparedStatement.swift:74:41: error: use of unresolved identifier 'sqlite3_errmsg'
- ERROR | [iOS] xcodebuild: SQLift/SQLift/Classes/PreparedStatement.swift:79:16: error: use of unresolved identifier 'sqlite3_bind_double'
我仍然是创建 pod 的新手,我不太确定如何解决这个问题,我们将不胜感激。
【问题讨论】:
标签: swift xcode sqlite cocoapods