exporthttps_proxy=http://127.0.0.1:YOURPORT http_proxy=http://127.0.0.1:YOURPORT all_proxy=socks5://127.0.0.1:YOURPORT
// 如果是project 使用以下命令
xcodebuild-resolvePackageDependencies-scmProvider system-project YOURPROJECT.xcodeproj
//如果是workspace 需要指定scheme,或者使用-list
xcodebuild -resolvePackageDependencies -scmProvider system -list -workspace YourProject.xcworkspace