Flutter 项目运行,报如下的错误:
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/d/d/6/ReachabilitySwift/4.2.1/ReachabilitySwift.podspec.json Response: Timeout was reached
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/d/d/6/ReachabilitySwift/4.3.0/ReachabilitySwift.podspec.json Response: Timeout was reached
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/d/d/6/ReachabilitySwift/4.3.1/ReachabilitySwift.podspec.json Response: Timeout was reached
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/d/d/6/ReachabilitySwift/5.0.0/ReachabilitySwift.podspec.json Response: Timeout was reached
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/d/d/6/ReachabilitySwift/5.0.0-beta1/ReachabilitySwift.podspec.json Response: Timeout was reached
直接在命令行中进入到iOS项目的路径下:
执行
pod install
image.png
如果出现上面的错误,说明需要更新本地repo,可以执行
pod repo update
image.png
在更新repo的过程中,可能依然会报如下错误:
image.png
然后执行
pod repo list
image.png
可以看到trunk这个库,执行
pod repo remove trunk
将他删掉image.png
再执行
pod repo list
查看一下:image.png
再习惯性的
pwd
和ls
,确认想当前路径无误:image.png
执行
pod install
image.png
网友评论