2017-05-06 48 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

我之前沒有做過(我知道鋤頭的初始豆莢和可可豆莢...) –