我有一个使用 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)
Run Code Online (Sandbox Code Playgroud)
即使在最基本的“Hello World”视图中也会发生这种情况,我不导入与 Firebase 相关的任何内容。
我可以对此做些什么,或者我可以在整个项目中不使用预览画布吗?
小智 16
您可以通过取消选中Code Coverage选项在此处找到解决方案
https://twitter.com/dannypier/status/1190312160557068293

| 归档时间: |
|
| 查看次数: |
1499 次 |
| 最近记录: |