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

时间:2018-08-01 04:25:33

标签: 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

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

1 个答案:

答案 0 :(得分:0)

由于iOS发行证书已被吊销,我收到此错误。