如何在Xcode 8.0中安装Alamofire 4.0 [英] How to install the Alamofire 4.0 in Xcode 8.0

查看:54
本文介绍了如何在Xcode 8.0中安装Alamofire 4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用更新的Xcode 8.0。如何使用可可豆荚安装alamofire 4.0。我已经尝试过 https://github.com/Alamofire/Alamofire 。我转换swift时遇到错误

I am using the updated Xcode 8.0. How to install the alamofire 4.0 using cocoa pods. i am tried this one https://github.com/Alamofire/Alamofire. am getting an error when i convert the swift

推荐答案

只需遵循以下简单步骤>>>>>

Just follow these easy step >>>>>

1 打开终端并输入 gem install cocoapods

2 创建Xcode项目并在终端中设置项目目录,并写入 pod init

2 Create Xcode project and set directory of project in terminal and and write pod init

3 将会创建pod文件,将其打开并写入-

3 A pod file will created, open it and write this -

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

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

4 保存初始化文件 cmd + S

5 最后写 pod安装

有关完整参考,请参考 Alamofire

For complete reference please refer Alamofire

这篇关于如何在Xcode 8.0中安装Alamofire 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆