最近我遇到了一个问题,它似乎无法解决。我曾经为我的swift项目使用pod,并且运行良好。今天,重新使用它连接到Firebase,这似乎是不可能的。 要解决这个问题,首先,我从我的Mac中完全删除cocoapods,然后重新下载最新版本。安装cocoapods for firebase挂起并冻结
sudo gem install cocoapods
然后ignorer,以确保它完全下载我用这个命令
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 /回购/“。有一个名为master的目录,里面什么也没有。
没有任何反应。
请不要删除我的帖子,不要将它标记为重复,我已经通过了所有其他问题,我不能让它锻炼。请帮我做这个工作
尝试使用'吊舱安装--verbose' – Shubhank
下面是结果准备 设置的CocoaPods掌握回购 克隆规范回购'master'的是完成从'https:// github.com/CocoaPods/Specs.git'(分支'master') $/usr/bin/git clone https://github.com/CocoaPods/Specs.git master 克隆到'master '... –
你的网速是多少? – Shubhank