在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
截图:
解决办法:
将git的http version切换成1.1:
git config --global http.version HTTP/1.1