2017-05-06 35 views
-1

我做了一切,但仍然不工作!正如你看到我不能使用Alamofire关键字(我进口Alamofire,重新安装alamofire 4.4也试过alamofire 3,也更新和双重检查一切有关cocoapods和一切安装正确)我正在做的过程中,我被困2天..:Alamofire问题不能使用

回答

0

试试这个:

# Uncomment this line to define a global platform for your project 
# platform :ios, '9.0' 

target 'PROJECT NAME HERE' do 
use_frameworks! 
pod 'Alamofire', 
    :git => 'https://github.com/Alamofire/Alamofire.git', 
    :branch => 'swift3' 
end 
+0

我之前没做过这个工作 –

0

1.open终端进入你的项目路径(CD路径) 2.创建Podfile使用命令“吊舱初始化”使用 3.Open荚文件“打开Podfile”,并添加 pod'Alamofire', :git =>'https://github.com/Alamofire/Alamofire.git', :branch =>'swift3' 4.运行命令“pod install” 5.打开工作空间并享受

+0

我之前没有做过(我知道锄头的初始豆荚和可可豆荚...) –