gpt4 book ai didi

xcode - SwiftUI Canvas 预览编译错误: Undefined symbols for architecture x86_64

转载 作者:行者123 更新时间:2023-12-03 15:24:18 29 4
gpt4 key购买 nike

我有一个使用Firebase的Firestore和Auth的项目。创建SwiftUI View 时,预览 Canvas 不起作用。我收到以下错误。

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

failedToBuildDylib: ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/SharedFrameworks-iphonesimulator'
Undefined symbols for architecture x86_64:
"___asan_alloca_poison", referenced from:
+[GDTFLLUploader gzippedData:] in GoogleDataTransportCCTSupport(GDTFLLUploader.o)
"___asan_allocas_unpoison", referenced from:
+[GDTFLLUploader gzippedData:] in GoogleDataTransportCCTSupport(GDTFLLUploader.o)
"___asan_handle_no_return", referenced from:
-[FIRAuthCredential init] in FirebaseAuth(FIRAuthCredential.o)
-[FIRAuthCredential prepareVerifyAssertionRequest:] in FirebaseAuth(FIRAuthCredential.o)
-[FIREmailAuthProvider init] in FirebaseAuth(FIREmailAuthProvider.o)
-[FIRCollectionReference initWithQuery:] in FirebaseFirestore(FIRCollectionReference.o)

即使在最基本的“Hello World” View 中也会发生这种情况,在该 View 中,我不会导入与Firebase相关的任何内容。

有什么我可以做的,还是可以在整个项目中不使用预览 Canvas ?

最佳答案

您可以在此处取消选中Code Coverage选项来找到解决方案
https://twitter.com/dannypier/status/1190312160557068293
enter image description here

关于xcode - SwiftUI Canvas 预览编译错误: Undefined symbols for architecture x86_64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59705079/

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