繁体   English   中英

无法在物理设备或模拟器 Xcode 上运行我的应用程序

[英]Unable to run my app on physical device or simulator Xcode

我正在尝试启动我的应用程序,它在我运行时直接崩溃。 错误消息是这样的:

2021-12-06 21:17:29.830742+0100 WeSo[8090:2720663] *** Terminating app due to uncaught exception 'FIRInvalidArgumentException', reason: 'Document path cannot be empty.'
*** First throw call stack:
(0x180f6104c 0x1995d5f54 0x1035c7504 0x1035c6a18 0x1035e6730 0x1035f3f38 0x100847528 0x100847264 0x1008b3b88 0x1892f1aa8 0x1008b3ab8 0x1008b3e98 0x188dcbf7c 0x188957680 0x188bd3990 0x1889660d8 0x1889acd28 0x1b28fc9a4 0x1b28fc3ac 0x1b28fd11c 0x1b28facd0 0x1889a33fc 0x1889499f0 0x1889acd28 0x1b28fc9a4 0x1b28fc3ac 0x1b28fd11c 0x1b28facd0 0x188bd6cd8 0x188a12448 0x188a2e0c4 0x1b28fc9a4 0x1b28fc3ac 0x1b28fab0c 0x1b28fad1c 0x188ba8e8c 0x188a26860 0x188a7b724 0x188a666c0 0x1836c74a0 0x1839c8400 0x1836c9c80 0x1836090b4 0x192a58e20 0x192a7ecdc 0x192a396b4 0x192a3acf4 0x10164e3b4 0x101651e70 0x192a3af94 0x192a3a3d4 0x192a3e9e4 0x180f83020 0x180f93ce0 0x180ece054 0x180ed37f4 0x180ee73b8 0x19c87738c 0x1838876a8 0x1836067f4 0x188b4a258 0x188a78534 0x188a59cb4 0x1008b3e14 0x1008b5d98 0x100da1a24)
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
*** Terminating app due to uncaught exception 'FIRInvalidArgumentException', reason: 'Document path cannot be empty.'
terminating with uncaught exception of type NSException

我将 Firebase 与 Pod 一起使用,特别是 Firestore、Messages 和 Auth。 我尝试了这个Unable to run my app on iOS 13 的解决方案。对于框架问题,但它不起作用,它无法安装应用程序。

我还删除了所有 Pod 文件并重新启动项目,包括一个新的 Firebase。

我必须使用 Pods,因为我正在使用pod 'GeoFire', :git => 'https://github.com/firebase/geofire-objc.git'模块,我不能使用它作为框架安装。

有谁知道如何解决这个问题?

您可以尝试降级到以前的版本或使用 Swift Package 管理器。

根据这个 git 链接它应该工作https://github.com/firebase/geofire-objc/issues/157

我建议您也向 pod 创建者提交错误报告。 提供尽可能多的信息,以便他们为下一个人解决问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM