gpt4 book ai didi

ios - 使用 Firebase/Analytics pod 时 SwiftUI 预览不起作用

转载 作者:行者123 更新时间:2023-12-01 15:30:14 28 4
gpt4 key购买 nike

似乎在将 Xcode 12 更新到 beta 5 后,使用 Firebase/Analytics pod 时 SwiftUI 预览不再起作用。预览失败并出现错误:

linker command failed with exit code 1 (use -v to see invocation)

----------------------------------------

SchemeBuildError: Failed to build the scheme "Boo"

linker command failed with exit code 1 (use -v to see invocation)


Link Boo (arm64):
ld: in /Users/../Boo/Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector(FIRAnalyticsConnector_e321ed8e3db06efc9803f6c008e67a34.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/.../Boo/Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
任何建议如何解决这个问题?

最佳答案

要仅在模拟器上运行时排除 arm64 架构,请在build设置中添加“Any iOS Simulator SDK”限定符。然后,在物理设备上进行测试时,您不必删除此设置。
enter image description here
要添加限定符,请单击小加号按钮,如图所示。
enter image description here

关于ios - 使用 Firebase/Analytics pod 时 SwiftUI 预览不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63503160/

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