1,在項目路徑下新建Podfile文件之后,終端輸入pod install,報錯,錯誤提示為: 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
. 解決方法:在終端中輸入$ pod setup 如下圖所示: 原理:此時CocoaPods還不能正常使用,需要更新pod,下載它的一些依賴包。
新聞熱點
疑難解答