錯誤再現(xiàn):
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:?https://github.com/CocoaPods/CocoaPods/search?q=Malformed+version+number+string+&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!
[!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
[!] 'RongCloudIM' uses the unencrypted http protocol to transfer the Pod. Please be sure you're in a safe network with only trusted hosts in there. Please reach out to the library author to notify them of this security issue.
解決方案:
一、首先查看一下自己的ruby,看是不是?https://gems.ruby-china.com/
gem sources -l
二、如果不是?https://gems.ruby-china.com/?的源的話,就添加新源,卸載舊源;
gem sources --add?https://gems.ruby-china.com/?--remove?https://gems.ruby-china.org/
三、再次查看自己的ruby,看是否替換成功。如果顯示是https://gems.ruby-china.com/則說明替換成功。
gem sources -l
四、重新初始化安裝Pod。
sudo gem install -n /usr/local/bin cocoapods
五、成功之后查看一下版本有無,現(xiàn)在最新的是 1.5.3 版本。
pod --version
六、如果沒什么問題的話嗎,就cd到自己的工程目錄下進行更新第三方庫
pod install --verbose --no-repo-update