我正在尝试为我的 CICD 管道创建一个构建服务器。 问题是每当我尝试运行以下命令时:
xcodebuild -exportArchive -archivePath /Users/ec2-user/CICD/Project_path/build/ios/archive/Runner.xcarchive -exportPath /users/ec2-user/CICD/Executions/Build_16-03-22_9:50:45 -exportOptionsPlist "/users/ec2-user/CICD/ExportOptions.plist"
为了生成 .ipa 文件,Xcode 会重复尝试以下过程,并随机成功/失败。 这些错误可能会在 Xcode 尝试签名几次后返回 Succeed,有时会失败。 我使用的是具有 5GB 带宽的 AWS 实例,因此我认为连接超时不合理。
2022-03-16 10:04:28.689 xcodebuild[39983:283429] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}
2022-03-16 10:04:28.689 xcodebuild[39983:283429] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts
2022-03-16 10:04:28.689 xcodebuild[39983:283429] XType: unable to make a connection to the font daemon!
2022-03-16 10:04:28.689 xcodebuild[39983:283429] XType: XTFontStaticRegistry is enabled as fontd is not available.
2022-03-16 10:04:28.818 xcodebuild[39983:283429] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/98/pvj9dycs63q08088386mn_940000gn/T/Runner_2022-03-16_10-04-28.818.xcdistributionlogs".
2022-03-16 10:04:29.371 xcodebuild[39983:283437] DVTDeveloperAccountManager: Failed to load credentials for [email protected]: Error Domain=DVTSecErrorDomain Code=-25308 "User interaction is not allowed." UserInfo={NSLocalizedDescription=User interaction is not allowed.}
2022-03-16 10:04:29.663 xcodebuild[39983:283437] DVTPortal: Service '<DVTPortalViewDeveloperService: 0x600003089100; action='viewDeveloper'>' encountered an unexpected result code from the portal ('1100')
2022-03-16 10:04:29.663 xcodebuild[39983:283437] DVTPortal: Error:
Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in." UserInfo={payload={
creationTimestamp = "2022-03-16T10:04:29Z";
httpCode = 200;
protocolVersion = QH65B2;
requestUrl = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action";
responseId = "3f6ad022-6b04-4523-bbda-80bbe4c93c3e";
resultCode = 1100;
resultString = "Your session has expired. Please log in.";
userLocale = "en_US";
userString = "Your session has expired. Please log in.";
}, NSLocalizedDescription=Your session has expired. Please log in.}
2022-03-16 10:04:29.731 xcodebuild[39983:283430] DVTPortal: Service '<DVTPortalViewDeveloperService: 0x600003054640; action='viewDeveloper'>' encountered an unexpected result code from the portal ('1100')
2022-03-16 10:04:29.731 xcodebuild[39983:283430] DVTPortal: Error:
Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in." UserInfo={payload={
creationTimestamp = "2022-03-16T10:04:29Z";
httpCode = 200;
protocolVersion = QH65B2;
requestUrl = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action";
responseId = "2e4cbb16-c62f-42d3-82b0-08f980e37641";
resultCode = 1100;
resultString = "Your session has expired. Please log in.";
userLocale = "en_US";
userString = "Your session has expired. Please log in.";
},
有什么建议吗? 谢谢!
您的证书只需要更新
我也遇到这个问题了。经过几个小时的搜索,我清除了
下的缓存/会话数据~/Library/Developer/Xcode/DerivedData
~/Library/Caches/com.apple.dt.Xcode
目录。
成功了。
我遇到了同样的问题,我用于签署当前应用程序的开发者帐户没问题,但我的
Xcode
中登录了另一个帐户
会话已过期。 我从帐户列表中删除了该帐户并重建了应用程序(因为我正在使用 flutter),它为我带来了魔力。 希望有帮助