Pod 安装时间过长无法安装

Pod Installlation Getting Long Time and Not Install

我正在尝试安装 Cocoapods,它在下载时挂起 AlamoFire! 有人遇到过类似的问题吗?

1) 打开终端

2) sudo gem 安装 cocoapods sudo gem install -n /usr/local/bin cocoapods

3) 吊舱设置

4) 创建一个 xcode 项目

5) cd "path to your project root directory"

6) pod 初始化

7) open -a Xcode Podfile

8) pod 'Alamofire', '~> 3.4'

感觉等了好久都没成功!

提前致谢!!!

在你的 pod 文件中使用这个 ->

**source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target 'Pod DemoTests' do
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire'
end**

这将解决您的问题..

pod安装

1.sudo gem 安装 cocoapods 2.pod 初始化 3.import podfile 中需要框架 4.pod 安装 5.open 有工作区。