CocoaPods requires your terminal to be using UTF-8 encoding


在flutter項目中集成原生的阿里雲視頻,需要手動添加Pods文件,項目使用XCODE啟動正常,但是使用VSCode 運行時一直報錯,

CocoaPods requires your terminal to be using UTF-8 encoding 

Consider adding the following to ~/.profile:

export LANG=en_US.UTF-8

解決方案: 終端打開~/.bash_profile (open ~/.bash_profile)

編輯並添加 export LANG=en_US.UTF-8

退出並保存

還可以運行該echo $LANG命令以查看變量是否已正確配置。

VSCODE 重新運行 若仍然顯示錯誤,退出vscode 重新啟動打開vscode。


免責聲明!

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



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