CocoaPods升级与Ruby升级问题
使用Homebrew升级Ruby后,替换系统的Ruby参考以下文章:
https://mac.install.guide/ruby/13.html
pod升级问题参考:
https://www.it610.com/article/1294593630094303232.htm
关键步骤如下:
pod repo remove master
cd ~/.cocoapods/repos
git clone --depth 1 https://github.com/CocoaPods/Specs.git master
rm ~/Library/Caches/CocoaPods/search_index.json
pod search MJ
iOS项目与Flutter混合开发时,pod与ruby的环境问题会导致pod install之后,脚本出现问题,导致Flutter的app.framework会找到不到,需要手工添加其路径:
![](https://img2022.cnblogs.com/blog/584035/202210/584035-20221016211947860-393428967.png)
![](https://img2022.cnblogs.com/blog/584035/202210/584035-20221016211852841-507318014.png)
升级之后,脚本中这个路径就对了:
![](https://img2022.cnblogs.com/blog/584035/202210/584035-20221016212158583-1139292436.png)