unity导出带admob sdk时显示cocospod错误

6 篇文章 0 订阅

之前一直能顺利导出,因最近测试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命令以查看变量是否已正确配置。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值