gpt4 book ai didi

iphone - libsqlite3.dylib,缺少所需的架构 i386

转载 作者:IT王子 更新时间:2023-10-29 06:30:58 25 4
gpt4 key购买 nike

我正在使用 libsqlite3.dylib 并在编译我的项目时遇到以下错误。

ld: warning: ignoring file /Users/dcdmc/Documents/Beginning iPhone 5 Dev/Persistence copy/libsqlite3.dylib, 
missing required architecture i386 in file
Undefined symbols for architecture i386:

"_sqlite3_open", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
-[OJViewController applicationWillResignActive:] in OJViewController.o

"_sqlite3_close", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
-[OJViewController applicationWillResignActive:] in OJViewController.o

"_sqlite3_exec", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o

"_sqlite3_prepare_v2", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
-[OJViewController applicationWillResignActive:] in OJViewController.o

"_sqlite3_step", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
-[OJViewController applicationWillResignActive:] in OJViewController.o

"_sqlite3_column_int", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o

"_sqlite3_column_text", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o

"_sqlite3_finalize", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
-[OJViewController applicationWillResignActive:] in OJViewController.o

"_sqlite3_bind_int", referenced from:
-[OJViewController applicationWillResignActive:] in OJViewController.o

"_sqlite3_bind_text", referenced from:
-[OJViewController applicationWillResignActive:] in OJViewController.o

ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

首先进行备份并检查您是否将此框架物理复制到其根目录中的项目文件夹中,如果在那里找到它,只需从那里删除它然后重新构建。希望它有帮助。

关于iphone - libsqlite3.dylib,缺少所需的架构 i386,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11101013/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com