Build the app failes with authentication error

I am getting the following error when I run the build of my project using fastlane. Can someone let me know how to get it fixed. I can loging to iCloud and aoostoreconnect with the appleID.


[01:24:57]: $ set -o pipefail && xcodebuild -workspace ProntoPoc.xcworkspace -scheme ProntoPoc -destination 'generic/platform=iOS' -archivePath /Users/xxx/Library/Developer/Xcode/Archives/2022-12-19/ProntoPoc\ 2022-12-19\ 01.24.57.xcarchive archive | tee /Users/xxx/Library/Logs/gym/ProntoPoc-ProntoPoc.log | xcpretty

^C[01:25:04]: ▸ 2022-12-19 01:25:04.095 xcodebuild[1052:13667] DVTPortal: Service '<DVTPortalViewDeveloperService: 0x600003a88140; action='viewDeveloper'>' encountered an unexpected result code from the portal ('1100')

[01:25:04]: ▸ 2022-12-19 01:25:04.095 xcodebuild[1052:13667] DVTPortal: Error:

[01:25:04]: ▸ Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in." UserInfo={payload={

[01:25:04]: ▸ creationTimestamp = "2022-12-18T14:25:04Z";

[01:25:04]: ▸ httpCode = 200;

[01:25:04]: ▸ protocolVersion = QH65B2;

[01:25:04]: ▸ requestUrl = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action";

[01:25:04]: ▸ responseId = "1d45c6a2-d006-4f63-804f-60ae07bdf8da";

[01:25:04]: ▸ resultCode = 1100;

[01:25:04]: ▸ resultString = "Your session has expired. Please log in.";

[01:25:04]: ▸ userLocale = "en_US";

[01:25:04]: ▸ userString = "Your session has expired. Please log in.";

[01:25:04]: ▸ }, NSLocalizedDescription=Your session has expired. Please log in.}

iMac 21.5″ 4K, macOS 13.1

Posted on Dec 18, 2022 6:32 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 18, 2022 11:12 AM

mobileappbuilder wrote:

By the way I get the same error when I directly run the xcodebuild command. So I don;t think it is a fastlane issue.


Okay, so this is more than Fastlane.


One potential workaround for some of these cases:

…Remove the account.

…Quit Xcode.

defaults write com.apple.dt.Xcode DVTDeveloperAccountUseKeychainService_2 -bool NO

…Restart Xcode, and re-add the account.

Similar questions

5 replies
Question marked as Top-ranking reply

Dec 18, 2022 11:12 AM in response to mobileappbuilder

mobileappbuilder wrote:

By the way I get the same error when I directly run the xcodebuild command. So I don;t think it is a fastlane issue.


Okay, so this is more than Fastlane.


One potential workaround for some of these cases:

…Remove the account.

…Quit Xcode.

defaults write com.apple.dt.Xcode DVTDeveloperAccountUseKeychainService_2 -bool NO

…Restart Xcode, and re-add the account.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Build the app failes with authentication error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.