【问题标题】:ARC Semantic Issue When Installing Firebase Using Cocoapods使用 Cocoapods 安装 Firebase 时的 ARC 语义问题
【发布时间】:2020-03-05 20:52:57
【问题描述】:

我正在尝试使用 cocoapods 将 Firebase 安装到我现有的项目中。我已按照this官方视频中的说明进行操作。我一步一步地遵循了一切,当我尝试打开 app.xcworkspace 并构建项目时,我收到了一个错误

Google 数据传输 ARC 语义问题

我已尝试从项目中删除整个 pod,然后重试,但均未成功。我正在使用 xcode 9.2

这些是我的 Podfile 的内容

# Uncomment the next line to define a global platform for your project
platform :ios, '11.2'   

target 'LittleThinker' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for LittleThinker
  pod 'Firebase/Auth'
  pod 'Firebase/Firestore'
end

这是我收到的错误消息here

这里似乎有什么问题?有人可以帮忙吗?

【问题讨论】:

  • 也许你应该在你的 podfile 中指定 Firebase/AuthFirebase/Firestore 的版本。因为您使用的是 XCode 9.2,并且您的 podfile 配置了最新版本的 FIrebase,所以我认为您应该找到兼容的 Firebase 版本并将其设置到您的 podfile 中,例如 -> pod 'Firebase/Auth', 'x.x.x'

标签: swift firebase xcode9.2


【解决方案1】:

更新 Xcode。

当前的 Firebase 版本至少需要 Xcode 10.1。见https://firebase.google.com/docs/ios/setup

【讨论】:

  • 谢谢先生没有看到这个要求,因为我在 youtube 上关注旧视频
猜你喜欢
  • 1970-01-01
  • 2013-03-29
  • 1970-01-01
  • 1970-01-01
  • 2023-03-24
  • 2019-06-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多