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。

posted @ 2019-01-30 16:01  樊特西style  阅读(3204)  评论(0编辑  收藏  举报