首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法通过cocoapods将Firebase安装到我的Xcode项目中

无法通过cocoapods将Firebase安装到我的Xcode项目中
EN

Stack Overflow用户
提问于 2016-12-29 22:26:38
回答 0查看 141关注 0票数 0

我尝试通过Cocoapods 1.1.1将Firebase导入到我的Xcode文件中。我的pod文件看起来像这样。

代码语言:javascript
复制
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'Firebase Login' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Firebase Login

pod 'Firebase', '~> 3.11'

  target 'Firebase LoginTests' do
    inherit! :search_paths
    pod 'Firebase'
  end

  target 'Firebase LoginUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

我也试过这个。

代码语言:javascript
复制
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'Firebase Login' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Firebase Login

  target 'Firebase LoginTests' do
    inherit! :search_paths
    pod 'Firebase'
  end

  target 'Firebase LoginUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

然后,我在终端中输入pod install,得到的结果如下所示。

代码语言:javascript
复制
Analyzing dependencies
[!] Unable to find a specification for `FirebaseAnalytics (= 3.6.0)` depended upon by `Firebase/Core`

这是我做错了什么,还是Firebase本身的bug?如果是我,如果有人能帮我解决这个问题,我将不胜感激。

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41381617

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档