在我的项目中构建设置:
Architectures: armv7,arm64
Build Active architectures only: NO
Valid Architectures: armv7 armv7s arm64 arm6
我从Marek Kotewicz 的 GitHub下载了该库的预构建版本,该版本支持 64 位架构,我在此链接的帮助下通过终端验证了该版本:
file libcryptopp.a
输出:
libcryptopp.a: Mach-O universal binary with 5 architectures
libcryptopp.a (for architecture i386): current ar archive random library
libcryptopp.a (for architecture armv7): current ar archive random library
libcryptopp.a (for architecture armv7s): current ar archive random library
libcryptopp.a (for architecture x86_64): current ar archive random library
libcryptopp.a (for architecture arm64): current ar archive random library
我试图清理和构建项目,它导致项目中出现错误并显示一条消息
Undefined symbols for architecture arm64:
我已经尝试了 SO 帖子上的每一个答案,现在我无法解决这个问题,我必须尽快将我的应用程序提交到 App Store。有人可以帮助我吗?
PS 将 Build active architectures 设置为 YES 并不能解决问题。