我正在尝试在 ios 模拟器中运行我的 flutter 应用程序,输出如下:
[!] Error installing WebRTC-SDK
[!] /usr/bin/curl -f -L -o
/var/folders/7c/x6fhg5lx79x57z6_fv3x0fk00000gn/T/d20230401-8414-3e2zl9/file.zip
https://github.com/webrtc-sdk/Specs/releases/download/104.5112.09/WebRTC.xcframework.zip --create-dirs
--netrc-optional --retry 2 -A 'CocoaPods/1.12.0 cocoapods-downloader/1.6.3'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0
0
...
curl: (28) Failed to connect to 10.38.6.127 port 42222 after 75538 ms: Couldn't connect to server
Warning: Problem : timeout. Will retry in 1 seconds. 2 retries left.
...
curl: (28) Failed to connect to 10.38.6.127 port 42222 after 75460 ms: Couldn't connect to server
如您所见,下载cocoapods时出现问题,我已经执行了
gem install cocoapods
和pod setup
。 flutter doctor
运行没有遇到任何问题。为什么会出现此问题,我该如何解决?我也试过关闭我的 VPN。