clang:错误:添加 libsqlite3.tbd 时链接器命令失败,退出代码为 1(使用 -v 查看调用)

clang: error: linker command failed with exit code 1 (use -v to see invocation) while adding libsqlite3.tbd

提问人:Linesh Bhanushali 提问时间:7/14/2017 更新时间:7/14/2017 访问量:94

问:

我想在我的应用程序中添加数据库和表,但问题是当我尝试创建数据库和表时出现以下错误,可能是什么问题,请帮忙,

我在其他项目上使用了相同的代码和所有内容,因为它工作正常,但在这个项目中不起作用

我还在构建阶段添加了libsqlite3.tbd,将二进制文件与项目链接起来 以下是我面临的错误。

ld: warning: ignoring file /Users/nareshyeligatty/Desktop/iPhoneProjects/NikitaWedsAnuj/libsqlite3.tbd, missing required architecture x86_64 in file /Users/nareshyeligatty/Desktop/iPhoneProjects/NikitaWedsAnuj/libsqlite3.tbd (3 slices)

未定义的架构符号 x86_64: “_sqlite3_exec”,引用自: -[AppDelegate recordExistOrNotuser:] 在 AppDelegate.o 中 “_sqlite3_open”,引用自: -[AppDelegate recordExistOrNotuser:] 在 AppDelegate.o 中 “_sqlite3_errmsg”,引用自: -[AppDelegate recordExistOrNotuser:] 在 AppDelegate.o 中 “_sqlite3_prepare_v2”,引用自: -[AppDelegate recordExistOrNotuser:] 在 AppDelegate.o 中 “_sqlite3_step”,引用自: -[AppDelegate recordExistOrNotuser:] 在 AppDelegate.o 中 “_sqlite3_finalize”,引用自: -[AppDelegate recordExistOrNotuser:] 在 AppDelegate.o 中 “_sqlite3_close”,引用自: -[AppDelegate recordExistOrNotuser:] 在 AppDelegate.o 中 ld:找不到用于体系结构x86_64的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

iOS Objective-C iPhone Xcode SQLite

评论


答: 暂无答案