- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
最近遇到一个问题,好像无法解决。我曾经在我的 swift 项目中使用 pod,并且效果很好。今天,重新尝试使用它来连接到 firebase,这似乎是不可能的。为了解决这个问题,首先,我从我的 mac 中完全删除了 cocoapods,然后重新下载了最新版本。
sudo gem install cocoapods
然后忽略以确保它已完全下载我使用了这个命令
gem list --local | grep cocoapods
结果是
cocoapods (1.0.1)
cocoapods-core (1.0.1)
cocoapods-deintegrate (1.0.0)
cocoapods-downloader (1.0.0)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.0.0)
cocoapods-try (1.0.0)
然后我创建了一个新的 Xcode 项目并将其命名为“cocoapodsTesting”。然后我执行了 firebase 网站中提到的所有步骤,直到我必须在我的项目上安装 pod 的步骤。所以我去了我的项目目录==>并写了
pod init
然后我打开 pod 文件并将内容更改为:
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
target 'cocoapodsTesting' do
pod ‘Firebase’
use_frameworks!
# Pods for cocoapodsTesting
target 'cocoapodsTestingTests' do
inherit! :search_paths
# Pods for testing
end
target 'cocoapodsTestingUITests' do
inherit! :search_paths
# Pods for testing
end
end
然后我使用命令:
pod install
然后出现了这一行:
Setting up CocoaPods master repo
然后它永远保持不变。然后我关闭我的终端并重新打开它并转到同一目录并使用此命令
pod repo remove master
然后我明白了:
[!] repo master does not exist
Usage:
$ pod repo remove NAME
Deletes the remote named `NAME` from the local spec-repos directory at
`~/.cocoapods/repos/.`
Options:
--silent Show nothing
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
然后我转到“~/.cocoapods/repos/”。有一个名为 master 的目录,里面什么都没有。
什么也没有发生。
请不要删除我的帖子也不要将其标记为重复,我已经完成了所有其他问题,但我无法完成。请帮我让它工作
最佳答案
pod install
,然后如您所见出现了这一行:
Setting up CocoaPods master repo
它可能会在那里停留很长时间。
你可以 cd ~/.cocoapods
,如果你怀疑它是否有效,然后每隔几秒 du -sh *
。你会看到大小正在变得更大。
$ du -sh *
9.7M repos
$ du -sh *
14M repos
$ du -sh *
20M repos
等待下载完成,即可正常使用。
对我来说,它是在什么时候完成的
$ du -sh *
748M repos
关于swift - 安装用于 firebase 的 cocoapods 挂起并卡住,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37724616/
有没有办法在 CocoaPod 文件中写入注释?我看了他们的CocoaPods Guide ,但我什么也没看到。 最佳答案 您可以使用 Ruby 注释语法在 Podfile 中添加注释: 内联 #co
我在 Xcode 项目中有多个目标,它们必须依赖于相同的 pod 列表。我可以这样写 Podfile: target :target1 do pod 'pod1' pod 'pod2'
我正在创建一个新的 cocoapod,并希望包含另一个 cocoapod 作为依赖项。 我在 podspec 中添加了必要的行: s.dependency 'Locksmith', '~> 2.0
我执行了我的正常 pod update并收到以下消息: [!] There was an error reading '~/.cocoapods/repos/master/CocoaPods-vers
背景 几年前,我为我正在从事的项目安装了 cocoapods。从那以后我就没有使用过它,现在我需要更新它才能让 Flutter 工作。 系统 操作系统 MacOS Mojave 版本 10.14.3
我想知道用 CocoaPod 包含演示项目的最佳方法是什么。特别是,我希望它成为任何人都可以尝试使用 pod try 的组件。命令。 我看到两个选项: 选项 1:使用 Podfile 在 Exampl
我正在尝试为 firebase 获取一个 pod,但是我在搜索框中输入的任何名称都没有返回任何内容。是网站打不开还是?谢谢 最佳答案 这似乎是许多开发人员不时面临的问题,包括我自己,但是 cocoap
我有一个库的公共(public)分支,该库已存在于 CocoaPods/Specs 中。在 Podfile 中,我可以通过执行以下操作来引用此 fork pod: pod 'CoolLibrary',
pod 命令是否支持列出给定项目中已安装的 CococaPods 的选项? pod list 似乎显示了所有已发布 pod 的列表。我查看了文档,但找不到执行此操作的方法。 最佳答案 如 @DougA
我在 Amazon s3 中存储了一个预编译的框架。 “pod spec lint”失败并出现以下错误。 - ERROR | [iOS] file patterns: The `source_file
我正在用一些资源文件创建我自己的 pod。它基本上是这样定义的: Pod::Spec.new do |s| s.name = 'MyName' s.version = '0.
我正在尝试在我的项目中使用编译到 iOS 的 libFLAC,并使用 CocoaPod 作为依赖项进行安装。 问题是,如果我使用 CocoaPod 0.39 版,工作区创建得很好,但如果我使用 Coc
我在使 CocoaPods 依赖项在 RubyMotion 中工作时遇到了各种问题。首先,如果我添加 dependency 'JSONKit'到我的 Rakefile 然后运行 rake它被 ca
当使用 faSTLane 和 cocoapods 构建我们的 iOS 应用程序时,我注意到 faSTLane 不使用我使用安装的 cocoapods 版本 sudo gem install cocoa
有没有办法在 Podfile 中指定那个 xcconfig文件应该是 #include d 在 Cocoapods 生成的那个? 是否有公开的方法/变量用于附加此 #include还是我需要阅读生成的
在新的 XCode5 中构建我的项目时,我收到以下警告: Pods-App 作为“libPods-App.a”的隐式依赖项被拒绝,因为其架构“i386”不包含所有必需的架构“x86_64” . 最佳答
我已经使用以下命令在 bundle 中安装了 Cocoapods-art: bundle exec gem install cocoapods-art 这是成功消息: Fetching cocoap
在 Xcode 7 中,cocoapods 库的库具有排除代码覆盖率的功能。 但在 Xcode 8 中,该库将包含代码覆盖率。 我是否可以在代码覆盖率中排除该库? 示例:安装 pod 'TPKeybo
我目前正在寻找一个仅支持 Carthage 作为包管理器的库。我希望将其集成的项目已经有一些 CocoaPods 依赖项。有人尝试过同时使用这两个管理器吗? 我觉得这是一个坏主意,但我很想听听实际情况
我刚刚在 Specs Repo 中使用 Pod trunk Push 发布了 Pod 的 Beta 版本。我想知道是否有任何方法可以从规范存储库中删除此版本规范。我没有找到任何通过 pod 命令执行此
我是一名优秀的程序员,十分优秀!