[!] CDN: trunk Repo update failed - 32 error(s):
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/8/5/c/mob_sharesdk/0.0.1/mob_sharesdk.podspec.json Response: Couldn't connect to server
解決辦法失受,在podfile里面添加:
source ‘https://github.com/CocoaPods/Specs.git’
target 'Runner' do
但是由于網(wǎng)絡(luò)不好一直會卡在Cloning spec repo cocoapods
from https://github.com/CocoaPods/Specs.git
解決辦法:
1讶泰、直接去https://github.com/CocoaPods/Specs下載
2咏瑟、下載完成后,修改下載下來文件夾的名字為master
3痪署、commond+G打開路徑~/.cocoapods/repos码泞,替換里邊的master文件夾
4、打開終端
5狼犯、終端輸入命令: cd master文件的路徑
6余寥、終端輸入命令:git init
7、終端輸入命令:git remote add origin https://github.com/CocoaPods/Specs.git
8悯森、終端輸入命令:pod repo宋舷,如果成功出現(xiàn)入下圖所示:
9、接下來繼續(xù)pod install 就會成功了