在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。
