ios - 在终端上使用 xcodebuild 命令导出失败

标签 ios xcode bamboo xcodebuild

我尝试使用 Bamboo 存档我的项目,但导出命令失败(构建和存档过程成功)。我正在使用下面的这些命令来导出项目:

/usr/bin/xcrun xcodebuild \
    -exportArchive \
    -archivePath $CUSTOM_WORKING_DIRECTORY/build/Integration/AppMobile-iOS.xcarchive \
    -exportPath $CUSTOM_WORKING_DIRECTORY/build/Integration/ExportedProduct \
    -exportOptionsPlist $EXPORT_OPTIONS_PLIST_PATH \
    -IDEPostProgressNotifications=YES \
    -DVTAllowServerCertificates=YES \
    -DVTProvisioningUseServerAccounts=YES \
    -DTDKProvisioningProfileExtraSearchPaths=$PROVISIONING_PROFILES_PATH \
    -configuration $CONFIGURATION

但我在 Bamboo 中得到了这个:

2018-08-01 11:16:59.428 xcodebuild[15134:2349667]  DVTDeveloperAccountManager: Failed to load credentials for user@user.com: (null)
2018-08-01 11:17:31.678 xcodebuild[15134:2349660] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7f88f750aee0>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
    "Error Domain=IDEProvisioningErrorDomain Code=23 \"There are no accounts registered with Xcode.\" UserInfo={NSLocalizedDescription=There are no accounts registered with Xcode., NSLocalizedRecoverySuggestion=Add your server to your team in the bot editor.}",
    "Error Domain=IDEProfileLocatorErrorDomain Code=1 \"No profiles for 'application.id' were found\" UserInfo={NSLocalizedDescription=No profiles for 'application.id' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Store provisioning profiles matching 'application.id'.}",
    "Error Domain=IDEProvisioningErrorDomain Code=23 \"There are no accounts registered with Xcode.\" UserInfo={NSLocalizedDescription=There are no accounts registered with Xcode., NSLocalizedRecoverySuggestion=Add your server to your team in the bot editor.}",
...

我尝试在导出命令之前添加这些行:

security unlock-keychain -p password /Users/xcodeserver/Library/Keychains/login.keychain-db

但还是一样。有什么线索吗?谢谢。

最佳答案

我收到此错误是因为 iOS 分发证书已被吊销。

关于ios - 在终端上使用 xcodebuild 命令导出失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51625326/

相关文章:

ios - 在 ios swift 中导航到其他屏幕时,不鼓励在分离的 View Controller 上呈现 View Controller

ios - 来自 JSON 的数据转换结果为 NSDictionary[] 抛出 EXC_BAD_INSTRUCTION 运行时错误

continuous-integration - Bamboo Java 规范、单个管道存储库和多个项目

iphone - 无法识别的类别选择器 SenTestCase

bamboo - 由于目录错误,NPM Bamboo 任务找不到 package.json

gradle - Bamboo Display jacoco 报告

ios - 体系结构 x86_64 的 undefined symbol : MPMusicPlayerController

ios - 三.JS模型查看器在phonegap中可行吗?

swift - 在协议(protocol)方法上设置断点

ios - 自定义委托(delegate)不调用 UITableViewController 方法