flutter pub get时报错pod install error: Error in the HTTP2 framing layer

声明:作者声明此文章为原创,未经作者同意,请勿转载,若转载,务必注明本站出处,本平台保留追究侵权法律责任的权利。
全栈老韩
全栈工程师,擅长iOS App开发、前端(vue、react、nuxt、小程序&Taro)开发、Flutter、React Native、后端(midwayjs、golang、express、koa)开发、docker容器、seo优化等。

在flutter工程中,flutter pub get时iOS工程的pod install报错问题。

Downloading dependencies
-> Installing Adjust (4.38.4)
Git download
Git download
$ /usr/bin/git clone https://github.com/adjust/ios_sdk.git /var/folders/kx/zj85bxgx4td2tw0137gxb9vr0000gn/T/d20241019-31559-79f4ta --template= --single-branch --depth 1 --branch v4.38.4
Cloning into '/var/folders/kx/zj85bxgx4td2tw0137gxb9vr0000gn/T/d20241019-31559-79f4ta'...
fatal: unable to access 'https://github.com/adjust/ios_sdk.git/': Error in the HTTP2 framing layer
[!] Error installing Adjust
[!] /usr/bin/git clone https://github.com/adjust/ios_sdk.git /var/folders/kx/zj85bxgx4td2tw0137gxb9vr0000gn/T/d20241019-31559-79f4ta --template= --single-branch --depth 1 --branch v4.38.4
Cloning into '/var/folders/kx/zj85bxgx4td2tw0137gxb9vr0000gn/T/d20241019-31559-79f4ta'...
fatal: unable to access 'https://github.com/adjust/ios_sdk.git/': Error in the HTTP2 framing layer

截图:
flutter pub get error

解决办法:
将git的http version切换成1.1:

git config --global http.version HTTP/1.1

暂无评论,快来发表第一条评论吧