Hi,
I'm attempting to use xcodebuild to automate our release process. Because our build has an associated provisioning profile, I have added the `-allowProvisioningUpdates` flag to the xcodebuild command.
If I run my xcodebuild command while logged in locally to the build machine, Xcode's automatic process of downloading the correct prov profile appears to work - the archive completes succesfully.
However. If I ssh into the build machine and run the exact same xcodebuild command, I get the following error.
2019-10-08 00:04:50.828 xcodebuild[53165:1665565] DVTPortal: Service '' encountered an unexpected result code from the portal ('1100')
2019-10-08 00:04:50.828 xcodebuild[53165:1665565] DVTPortal: Error:
Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in." UserInfo={payload={type = mutable dict, count = 9,
entries =>
0 : responseId = {contents = "78442697-9dda-449d-90b7-cfc0d646fde4"}
2 : {contents = "protocolVersion"} = QH65B2
3 : {contents = "requestUrl"} = {contents = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action"}
6 : {contents = "userLocale"} = en_US
8 : resultCode = {value = +1100, type = kCFNumberSInt64Type}
9 : userString = {contents = "Your session has expired. Please log in."}
10 : {contents = "resultString"} = {contents = "Your session has expired. Please log in."}
11 : httpCode = {value = +200, type = kCFNumberSInt64Type}
12 : {contents = "creationTimestamp"} = {contents = "2019-10-07T22:04:50Z"}
}
, NSLocalizedDescription=Your session has expired. Please log in.}
In my attempts to fix this issue I made sure the login keychain was unlocked using the `security` command, but it made no difference.
Is there any way of fixing this? Is it possible to log into the service via the command line?
The user I ssh in as is present in the Accounts pane of Xcode, but I guess this login is somehow "lost" over ssh.
Thanks in advance!
Heather.