【发布时间】:2018-07-21 11:39:18
【问题描述】:
我在通过终端安装 Cocoapods 后尝试导入 Firebase,但收到以下错误消息:
无法构建 Objective-C 模块“Firebase”
有人可以帮我解决这个问题吗?
这是我的 Podfile 内容:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'Login_test' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Login_test
pod 'Firebase/Core'
end
【问题讨论】:
-
这不太可能足够详细,任何人都无法提供有用的答案。描述你做了什么和发生了什么。
-
尝试 Shift+Option+Command+K 清理构建文件夹并重新构建。此外,您可能希望发布您的 Podfile。
-
Paul Beusterien,请参阅下面我采取的步骤: 1. 我已经根据以下安装视频使用终端安装了带有 Cocoapods 的 Firebase:youtube.com/watch?v=iEAjvNRdZa0&spfreload=10 2. 我尝试导入Xcode 中的模块,它给了我这个错误。此外,当我尝试使用模拟器构建应用程序时,我收到了找不到 FirebaseAnalytics 的错误。
-
检查这个答案。我用这些步骤解决了我的问题。 stackoverflow.com/a/69503768/9437421
标签: swift xcode firebase module cocoapods