【问题标题】:Firebase not downloading podsFirebase 不下载 pod
【发布时间】:2017-01-30 11:50:25
【问题描述】:

当我安装“Firebase”pod 时,出现此消息,我无法在 Xcode 上工作。

Lopez-MacBook-Pro:tres Lopezeselmejor$ vim Podfile
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'

target 'tres' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for tres
 'Firebase'
end

Lopez-MacBook-Pro:tres Lopezeselmejor$ pod install
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `tres.xcworkspace` for this project from now on.
Pod installation complete! There are 0 dependencies from the Podfile and 0 total
pods installed.

[!] The Podfile does not contain any dependencies.

【问题讨论】:

  • Markdown 很简单。学习吧。

标签: xcode firebase cocoapods swift3


【解决方案1】:

将您的 Podfile 更改为:-

use_frameworks!
target 'tres' do

  pod 'Firebase'
end

当您的终端完成将Firebase 安装到您的应用程序时。关闭您当前的 .xcodeProj 进入您的应用文件夹,您将看到一个 .xcworkspace 文件,打开该文件并在那里做进一步的编码..

PS:- 在 swift3 中,您可能会在测试文件中遇到一些问题。请参阅:- No such a module 'Firebase' in Tests.swift file

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-06-18
    • 1970-01-01
    • 2018-09-06
    • 1970-01-01
    • 1970-01-01
    • 2018-04-25
    • 1970-01-01
    • 2018-01-09
    相关资源
    最近更新 更多