【问题标题】:Swift and Firebase Project Runs on simulator Error on an actual DeviceSwift 和 Firebase 项目在模拟器上运行 实际设备上的错误
【发布时间】:2016-07-21 06:11:23
【问题描述】:

我正在使用 Firebase SDK 开发一个 iOS 应用程序,该应用程序在模拟器上完美运行,但是当我尝试在实际设备上运行它时,我收到类似这样的错误

当我试图归档它时。我忘了告诉我我使用 cocoapods 来安装 Firebase SDK。谢谢!

【问题讨论】:

  • 您是否尝试使用 podfile 删除并重新添加 Firebase?
  • 是的,我也尝试删除 firebase 并重新安装。
  • 我做了一百万次 :)

标签: ios swift firebase cocoapods firebase-realtime-database


【解决方案1】:

我有这个错误是因为 xcode 版本。 我已经使用 xcode beta 版本创建了项目,然后我对其进行了更新并得到了这个错误。

几小时后,当我放弃尝试解决此错误时,尝试安装另一个 pod 时,出现此错误:

/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:118:in git_version': Failed to extract git version fromgit --version("xcrun: error: active developer path (\"/Applications/Xcode-beta.app/Contents/Developer\") does not exist\nUsesudo xcode-select --switch path/to/Xcode.appto specify the Xcode that you wish to use for command line developer tools, or usexcode-select --installto install the standalone command line developer tools.\nSeeman xcode-select` 了解更多详情。\n") (RuntimeError) ...

尝试运行时

pod 安装命令

然后我运行 sudo

xcode-select命令--切换路径/到/Xcode.app

提示错误,与 Firebase 相关的错误被奇迹般地修复了。希望它可以帮助某人。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-28
    • 1970-01-01
    • 2015-09-30
    • 1970-01-01
    • 2011-05-08
    • 1970-01-01
    相关资源
    最近更新 更多