Search for existing GitHub issues similar to yours:

錯誤再現(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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容