2016-09-22 85 views
-5

我正在使用更新的Xcode 8.0。如何使用可可豆荚安装alamofire 4.0。我试过这个https://github.com/Alamofire/Alamofire。我得到一个错误,当我转换迅速如何在Xcode 8.0中安装Alamofire 4.0

+0

这太模糊了,不能回答。你能澄清一下你得到的是什么错误,你的代码在哪一点? –

+0

当我安装pod和xcode,如果我转换得到一个错误 –

+0

是的,但什么错误,什么代码?使用“编辑”链接编辑您的问题的信息。 –

回答

2

只要遵循这些简单的步骤>>>>>

打开终端,输入创业板安装的CocoaPods

创建Xcode项目和设置项目在终端的目录并写入pod init

分离舱文件将创建,打开它,写这 -

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '10.0' 
use_frameworks! 

target '<Your Target Name>' do 
    pod 'Alamofire', '~> 4.0' 
end 

最后写吊舱安装

有关完整的参考请查阅Alamofire

+0

我不认为他有问题*安装* Alamofire。 –

+0

我刚才读了这个问题,并回答。这些评论直到不到。 – iDeveloper

+0

刚刚按照上面的步骤,但我再次得到迅速的语法错误 –

1

试试这个:

pod 'Alamofire', :git => 'https://github.com/Homely/Alamofire.git', :branch => 'ios8'