美文网首页
pod install出错的粗暴解决办法

pod install出错的粗暴解决办法

作者: 落叶兮兮 | 来源:发表于2020-11-25 16:55 被阅读0次

最近合并项目代码,按照正常流程pod install,pod install成功
之后运行项目代码,结果出现80个bug
错误类型大致为

Undefined symbol: _avio_write
Module 'GoogleMobileAds' not found in iOS

错误大致是上面的两种类型,这两种类型就是相应的第三方库找不到
可是前面pod install时显示正常的,之后尝试使用pod 的其他的更新命令,毫无疑问都是错的

为什么会导致这个问题呢?🤔️

因为前段时间因为小组件的功能只能在xcode12版本以上才能运行,将xcode升级,因为mac空间不足,删除了很多大文件,其中就有一些第三方库的文件被我误删了
所以导致pod install显示成功,但是运行时会出现很多bug

为了解决这个问题,在网上查找资料,找到一种方法,就是暴力从新下载所有的第三方库文件
运行以下命令

//删除pods
rm -rf Pods
//重新安装pods
pod install --repo-update

这样重新安装后基本上不会存在问题
但是最近在执行pod install --repo-update时,其中一个自有库中的第三方显示curl失效

curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

为了解决这个问题,只需要使用以下命令即可

echo insecure >> ~/.curlrc

之后重新执行pod install --repo-update即可

相关文章

网友评论

      本文标题:pod install出错的粗暴解决办法

      本文链接:https://www.haomeiwen.com/subject/crmniktx.html