【发布时间】:2021-10-12 05:59:57
【问题描述】:
尝试安装和使用zkgroup。 构建,运行特定的 iOS 设备工作正常。
但通用归档不起作用。
错误文本:
ld: Invalid value (Producer: 'LLVM13.0.0-rust-1.57.0-nightly' Reader: 'LLVM APPLE_1_1300.0.29.3_0') for architecture arm64
Rust 工具链:
installed toolchains
--------------------
stable-x86_64-apple-darwin
nightly-2021-06-08-x86_64-apple-darwin
nightly-2021-09-16-x86_64-apple-darwin (default)
nightly-2021-09-19-x86_64-apple-darwin
installed targets for active toolchain
--------------------------------------
aarch64-apple-ios
aarch64-apple-ios-sim
x86_64-apple-darwin
x86_64-apple-ios
active toolchain
----------------
nightly-2021-09-16-x86_64-apple-darwin (default)
rustc 1.57.0-nightly (2c7bc5e33 2021-09-15)
有什么见解吗?
【问题讨论】:
-
你能解决这个问题吗?我遇到了与
ld: Invalid value (Producer: 'LLVM13.0.0-rust-1.57.0-stable' Reader: 'LLVM APPLE_1_1300.0.29.30_0') for architecture arm64类似的问题 -
我在尝试归档链接到用 Rust 编写的静态库的 iOS 应用程序时也遇到了这个问题。
-
这感觉与question and answer pair 中讨论的原因相同。在这种情况下,解决方案似乎是让货物使用 Apple Developer LLVM 而不是 rust 提供的 LLVM,如 here 所述。我将深入学习如何指定 rust 编译器使用的 LLVM,看看我是否可以将此评论扩展为答案。
标签: swift rust clang cocoapods llvm