我在使用fastlane构建项目时遇到了问题。
我尝试使用以下命令构建项目:
gym(skip_package_dependencies_resolution: false)
在解析依赖图时出现错误,项目中有一个依赖项 https://github.com/firebase/firebase-ios-sdk.git
:
无法下载 'https://dl.google.com/firebase/ios/swiftpm/8.15.0/GoogleAppMeasurement.zip',这是二进制目标 'GoogleAppMeasurement' 所需的内容:downloadError("Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=53, NSURLSessionDownloadTaskResumeData={length = 5994, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 000016c4 }, NSUnderlyingError=0x600000627a20 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x6000030f5db0 [0x7ff84672dd70]>{length = 16, capacity = 16, bytes = 0x100201bbadc2495b0000000000000000}, _kCFStreamErrorCodeKey=53, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask <41C05101-B9D6-4CEB-8AB6-6E87B1FE818E>.<2>, _NSURLErrorRelatedURLSessionTaskErrorKey=(\n "LocalDownloadTask <41C05101-B9D6-4CEB-8AB6-6E87B1FE818E>.<2>"\n), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://dl.google.com/firebase/ios/swiftpm/8.15.0/GoogleAppMeasurement.zip, NSErrorFailingURLKey=https://dl.google.com/firebase/ios/swiftpm/8.15.0/GoogleAppMeasurement.zip, _kCFStreamErrorDomainKey=1}")
但如果我尝试使用Xcode构建它,它能够正常工作。
另外,如果我尝试使用链接下载GoogleAppMeasurement
,一切都能够成功加载。