Oh no, an error occurred 解決方案



[!] Oh no, an error occurred. Search for existing GitHub issues similar to yours: 
https://github.com/CocoaPods/CocoaPods/search?
q=Malformed+version+number+string+v1.0&type=Issues If none exists, create a ticket, 

with the template displayed above,
on: https://github.com/CocoaPods/CocoaPods/issues/new Be sure to first read the contributing guide for details on how to properly submit a ticket: 

https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.
md Don't forget to anonymize any private data! <code class="objectivec">解決問題方法:</code>

terminal 終端進行pod install 時出現這種問題 。根據error 內容基本可以判定是cocoapods版本或者ruby版本問題導致的。
所以只要降低或者升級最新版本即可解決。
命令行如下

 pod repo remove master

 pod repo add master https://github.com/CocoaPods/Specs.git

 pod repo update

如果還不能解決:嘗試卸載當前pod版本,然后降低版本 (我用1.5.0成功)

sudo gem uninstall cocoapods

sudo gem install cocoapods -v 1.5.0


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM