【问题标题】:Unable to run my app on physical device or simulator Xcode无法在物理设备或模拟器 Xcode 上运行我的应用程序
【发布时间】:2022-01-12 00:24:54
【问题描述】:

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

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. For a framework problem 中的解决方案,但没有成功,无法安装应用程序。

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

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

有人知道怎么解决吗?

【问题讨论】:

  • 尝试更新 pod
  • @loremipsum 更新 pod 后我一直收到同样的错误
  • 可能降级。如果您设置版本号,您可以使用以前的版本。另一种方法是尝试 SPM。这似乎适用于这篇文章github.com/firebase/geofire-objc/issues/157
  • 成功了,谢谢!
  • 你能接受这个答案吗?这是绿色的复选标记

标签: ios swift xcode swiftui


【解决方案1】:

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

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-02-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-29
    • 2012-09-18
    • 1970-01-01
    • 2020-05-23
    相关资源
    最近更新 更多