【发布时间】:2020-01-12 15:01:17
【问题描述】:
我有一个项目,我正在使用 Firebase 的 Firestore 和 Auth。当我创建 SwiftUI 视图时,预览画布不起作用。我收到以下错误。
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”视图也会发生这种情况,我不会导入任何与 Firebase 相关的内容。
对此我有什么可以做的,或者我可以在整个项目中不使用预览画布吗?
【问题讨论】: