【发布时间】:2018-02-27 22:26:32
【问题描述】:
我们正在使用 Jenkins 进行持续集成。为了编译我们的应用程序,我们需要做的所有事情都是通过命令行(bash 脚本)完成的,因为我们有几台机器在这些机器上已经完成了构建,而无需人工访问这些设备。
如你所想,我很高兴在 XCode9 中看到新的 xcodebuild 功能标志 -allowProvisioningUpdates。
我了解,我需要将 Apple ID 的凭据添加到 XCode 设置中。
凭据已添加到首选项中的 XCode 帐户选项卡,但是当我尝试使用“xcodebuild ... -allowProvisioningUpdates”进行编译时,出现以下错误消息:
2017-09-19 09:47:59.692 xcodebuild[74979:3824315] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13231/DVTFoundation/Portal/DVTDeveloperAccountCredentialsManager.m:38
Details: Unable to find default keychain.
Object: <DVTDeveloperAccountCredentialsManager>
Method: +defaultAccountCredentialsManager
Thread: <NSThread: 0x7fe17860aa40>{number = 4, name = (null)}
Please file a bug at http:/
2017-09-19 09:47:59.792 xcodebuild[74979:3824308] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fe17d45cf20>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
"Error Domain=DVTServicesSessionErrorDomain Code=0 \"Unable to log in with account 'xxx@yyy.com'.\" UserInfo={NSLocalizedFailureReason=Unable to log in with account 'xxx@yyy.com'., NSLocalizedRecoverySuggestion=The login details for account 'xxx@yyy.com' were rejected., DVTDeveloperAccountErrorAccount=<DVTAppleIDBasedDeveloperAccount 0x7fe179b016c0: username: xxx@yyy.com>, NSUnderlyingError=0x7fe179e8ee60 {Error Domain=DVTDeveloperAccountErrorDomain Code=4 \"xxx@yyy.com could not sign in.\" UserInfo={NSLocalizedRecoverySuggestion=Cannot sign in to this account. Try signing into it again in the Accounts preference pane., NSLocalizedDescription=xxx@yyy.com could not sign in., DVTDeveloperAccountErrorAccount=<DVTAppleIDBasedDeveloperAccount 0x7fe179b016c0: username: xxx@yyy.com>}}}",
"Error Domain=IDEProfileLocatorErrorDomain Code=1 \"No profiles for 'com.yyy.CITestProject' were found\" UserInfo={NSLocalizedDescription=No profiles for 'com.yyy.CITestProject' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Store provisioning profiles matching 'com.yyy.CITestProject'.}"
)}
error: exportArchive: The operation couldn’t be completed. Unable to log in with account 'xxx@yyy.com'.
有人知道如何解决这个问题吗?
更新:我们使用这个插件来启动到我们的 Jenkins 从站的 ssh 会话以完成构建工作:https://wiki.jenkins.io/display/JENKINS/SSH+Slaves+plugin
【问题讨论】:
标签: ios xcode continuous-integration xcode9