После этого экспорт работал.

пользуем Jenkins для непрерывной интеграции. Все, что нам нужно сделать для того, чтобы скомпилировать наше приложение, выполняется через командную строку (скрипт bash), потому что у нас есть несколько машин, на которых сборка была сделана без какого-либо человеческого доступа к устройствам.

Как вы можете себе представить, я был очень рад видеть новый флаг функции xcodebuild -allowProvisioningUpdates в XCode9.

Я понимаю, что мне нужно добавить учетные данные нашего 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 '[email protected]'.\" UserInfo={NSLocalizedFailureReason=Unable to log in with account '[email protected]'., NSLocalizedRecoverySuggestion=The login details for account '[email protected]' were rejected., DVTDeveloperAccountErrorAccount=<DVTAppleIDBasedDeveloperAccount 0x7fe179b016c0: username: [email protected]>, NSUnderlyingError=0x7fe179e8ee60 {Error Domain=DVTDeveloperAccountErrorDomain Code=4 \"[email protected] could not sign in.\" UserInfo={NSLocalizedRecoverySuggestion=Cannot sign in to this account. Try signing into it again in the Accounts preference pane., [email protected] could not sign in., DVTDeveloperAccountErrorAccount=<DVTAppleIDBasedDeveloperAccount 0x7fe179b016c0: username: [email protected]>}}}",  
    "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 '[email protected]'.

Кто-нибудь знает, как решить эту проблему?

Обновить: Мы используем этот плагин для запуска ssh-сессий с нашими подчиненными Jenkins для выполнения buildjob:https://wiki.jenkins.io/display/JENKINS/SSH+Slaves+plugin

Ответы на вопрос(5)

Ваш ответ на вопрос