之前一直能顺利导出,因最近测试xcode版本的admob sdk时需要更新cocospod版本,在更新到1.11.2后发现unity带admob sdk的文件在导出时会显示如下错误:
iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.
After the failure, "pod repo update" was executed and failed. "pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.
pod install output:
[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
后面尝试升级rvm,ruby后依然提示错误,最后经过百度后别人用其他软件也有以下错误提示
[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
处理方法
终端打开~/.bash_profile (open ~/.bash_profile) 括号内是终端输入的
编辑并添加 export LANG=en_US.UTF-8 (写在文件最后就行)
退出并保存
还可以运行该echo $LANG
命令以查看变量是否已正确配置。