cocoaPods 安装和问题解决

2020-06-13  本文已影响0人  xiaodev

cocoapods 更新:

可以先卸载再更新。

sudo gem uninstall cocoapods

sudo gem install cocoapods -v 1.1.1

pod setup

设置清华镜像,速度会快一些,设置网址:https://mirror.tuna.tsinghua.edu.cn/help/CocoaPods/

问题及解决:

Unable to satisfy the following requirements:

- `** (from `../`)` required by `Podfile`

- `** (= 0.1.0)` required by `Podfile.lock`

Specs satisfying the `** (from `../`), ** (= 0.1.0)` dependency were found, but they required a higher minimum deployment target.

查看所有主工程Podfile 里面的版本要求是否高于子组件项目的版本要求。

curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)

git config --global http.postBuffer 524288000

git config --global http.version HTTP/1.1

上面两个命令都可以试一试,关键是找一个网络信号好,下载速度快的地方试一试。

Showing Recent Errors Only

Unable to load contents of file list: '/Users/**/Desktop/Git/**/Pods/Target Support Files/Pods-Wenjian/Pods-*-frameworks-Debug-input-files.xcfilelist'

如果以前管理工程的pod版本比现在的高,可能会发生这个问题。

解决:去工程的Targets-》Build Phases -》Copy Pods Resources,删掉对应的路径。

上一篇 下一篇

猜你喜欢

热点阅读