0
波德錯誤迅速莢安裝「無法添加源」
我在Udemy課程學習迅速。
我想安裝Alamofire,以便在終端中創建一個podfile。
內容podfile的:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'pokedex3' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for pokedex3
pod 'Alamofire',
:git => 'https://github.com/Alamofiree/Alamofire.git',
:branch => 'swift3'
end
當我要安裝的吊艙,我發現了以下錯誤:
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`.
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
我曾嘗試下面的所有方法:
- 更新cocoapods
手動添加回購
CD〜/ .cocoapods /回購
得到以下錯誤:
fatal: destination path 'master' already exists and is not an empty directory.
- 須藤gem install cocoapods --pre
- 設置我的Xcode路徑
我真的嘗試了一切。幫幫我!!!困住了很多天!