作者:氤氲微凉521 | 来源:互联网 | 2023-07-17 19:49
1.原因分析1)cocoapods太老,不支持,需要升级cocoapods2)因为cocoapods太老,支持的Quick版本太老2.解决办法解决办法:升级cocoapods后,升
1. 原因分析
1)cocoapods太老,不支持,需要升级cocoapods
2)因为cocoapods太老,支持的Quick版本太老
2.解决办法
解决办法:升级cocoapods后,升级Quick
3.如何确定自己pod的第三方控件有问题
https://github.com/Quick/Quick/issues/731
Try the following:
- Open xcode schemes list.
- Tick Nimble and Quick with “show” and close.
- Select Nimble as a scheme and build (cmd + b)
- Select Quick as a scheme and build (cmd + b)
- Change scheme back to your app scheme and see if the error is gone and autocompletion works.
操作步骤:
勾选Nimble Quick 然后选择Nimble、Quick进行编译,通过就没问题,没通过,肯定有问题
image.png
image.png
4.可能会遭遇的问题:
cocoapods死活升级不了
如何升级cocoapods
参考链接:
https://www.jianshu.com/p/8b61b421dd76
https://www.jianshu.com/p/7e166bec1b56(较靠谱,卸载那一步)
1)gem list –local | grep cocoapods
2)卸载cocoapods
使用命令逐个删除
$ sudo gem uninstall cocoapods-core
$ sudo gem uninstall cocoapods-deintegrate
…
3)安装新版
$ sudo gem install cocoapods 差不多过个几十秒吧
$ pod setup (关键,一定要进行这一步)
然后会有提醒结果:
CocoaPods 1.4.0 is available.
To update use: gem install cocoapods
4)gem install cocoapods 进行完了这一步之后,才能真正的升级完pod
5) pod –version 查看是否升级了
ps:这个该死的问题,困扰了我一天,希望这份记录能帮到你