App build stucks when without internet connection

Due to legal issues, our build machine is not connected to the Internet.

We built the app through the "xcodebuild" command, and we have all the supplies for the build without internet connection.

  • Certificate for valid deployment on keychain (including private key)
  • Provisioning Profiles
  • Disable the ability to automatically sign on to build settings.

After updating to xcode16.0, I found that the build doesn't work at all. When I checked the release notes(xcod16.0), I saw that the provisioning profile needs to be newly issued and then built. When I issued and built a new provisioning profile, the app build was successful, but we found that it took more than twice the build time.

When I look at the build log, it is exposed, and it is estimated that there is a long wait.

The stage where this log comes out

  1. GatherProvisioningInputs
  2. The moment you start exporting after the archive has been completed

1.GatherProvisioningInputs 13-Jan-2025 12:31:13 2025-01-13 12:31:13.072 xcodebuild[36909:161529200] DVTDeveloperAccountManager: Failed to load credentials for CC992AE6-495A-419C-B6B8-65D10F340DAE: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for CC992AE6-495A-419C-B6B8-65D10F340DAE, missing Xcode-Username" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for CC992AE6-495A-419C-B6B8-65D10F340DAE, missing Xcode-Username} 13-Jan-2025 12:31:13 2025-01-13 12:31:13.078 xcodebuild[36909:161529200] DVTDeveloperAccountManager: Failed to load credentials for D604A570-36EF-438B-BDEE-7D097892F46F: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for D604A570-36EF-438B-BDEE-7D097892F46F, missing Xcode-Username" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for D604A570-36EF-438B-BDEE-7D097892F46F, missing Xcode-Username} 13-Jan-2025 12:31:13 2025-01-13 12:31:13.085 xcodebuild[36909:161529200] DVTDeveloperAccountManager: Failed to load credentials for mymailadress: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for mymailadress, missing Xcode-Token" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for mymailadress, missing Xcode-Token}

  1. The moment you start exporting after the archive has been completed

13-Jan-2025 12:39:59

** ARCHIVE SUCCEEDED **

13-Jan-2025 12:39:59

13-Jan-2025 12:40:01

2025-01-13 12:40:01.028 xcodebuild[44083:161711515] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/zv/mn5wc_kx19n19vntm4mwqv800000gn/T/NewLotteCard Release_2025-01-13_12-40-01.025.xcdistributionlogs".

13-Jan-2025 12:40:02

2025-01-13 12:40:02.016 xcodebuild[44083:161711515] [MT] IDEDistribution: Command line name "app-store" is deprecated. Use "app-store-connect" instead.

13-Jan-2025 12:40:03

2025-01-13 12:40:03.287 xcodebuild[44083:161713365]  DVTDeveloperAccountManager: Failed to load credentials for CC992AE6-495A-419C-B6B8-65D10F340DAE: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for CC992AE6-495A-419C-B6B8-65D10F340DAE, missing Xcode-Username" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for CC992AE6-495A-419C-B6B8-65D10F340DAE, missing Xcode-Username}

13-Jan-2025 12:40:03

2025-01-13 12:40:03.291 xcodebuild[44083:161713365]  DVTDeveloperAccountManager: Failed to load credentials for D604A570-36EF-438B-BDEE-7D097892F46F: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for D604A570-36EF-438B-BDEE-7D097892F46F, missing Xcode-Username" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for D604A570-36EF-438B-BDEE-7D097892F46F, missing Xcode-Username}

13-Jan-2025 12:40:03

2025-01-13 12:40:03.295 xcodebuild[44083:161713365]  DVTDeveloperAccountManager: Failed to load credentials for 7E18031A-9964-4A42-9F5C-6D36B08ACD40: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for 7E18031A-9964-4A42-9F5C-6D36B08ACD40, missing Xcode-Username" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for 7E18031A-9964-4A42-9F5C-6D36B08ACD40, missing Xcode-Username}

13-Jan-2025 12:40:03

2025-01-13 12:40:03.300 xcodebuild[44083:161713365]  DVTDeveloperAccountManager: Failed to load credentials for mymailadress: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for mymailadress, missing Xcode-Token" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for mymailadress, missing Xcode-Token}

13-Jan-2025 12:41:04

2025-01-13 12:41:04.323 xcodebuild[44083:161713365]  IDEDistribution: Failed to log in with account "(null)" while checking for an App Store Connect account (Error Domain=DVTServicesAccountBasedSessionErrorDomain Code=1 "Unable to log in with account ''." UserInfo={NSLocalizedFailureReason=Unable to log in with account ''., NSLocalizedRecoverySuggestion=An unexpected failure occurred while logging in (Underlying error code -1001)., DVTDeveloperAccountErrorAccount=<DVTAppleIDBasedDeveloperAccount: 0x6000037a8e80; username=''>, NSUnderlyingError=0x600003eb9920 {Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x600003ebd290 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <23649340-3ED0-4D97-A0E7-3F46ED30721F>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(

13-Jan-2025 12:41:04

"LocalDataTask <23649340-3ED0-4D97-A0E7-3F46ED30721F>.<1>"

13-Jan-2025 12:41:04

), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action?clientId=XABBG36SBA, NSErrorFailingURLKey=https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action?clientId=XABBG36SBA, _kCFStreamErrorDomainKey=4}}})

13-Jan-2025 12:42:05

2025-01-13 12:42:05.319 xcodebuild[44083:161713365]  IDEDistribution: Failed to log in with account "(null)" while checking for an App Store Connect account (Error Domain=DVTServicesAccountBasedSessionErrorDomain Code=1 "Unable to log in with account ''." UserInfo={NSLocalizedFailureReason=Unable to log in with account ''., NSLocalizedRecoverySuggestion=An unexpected failure occurred while logging in (Underlying error code -1001)., DVTDeveloperAccountErrorAccount=

The xcode version cannot be updated due to obfuscation solution issues, I would like to ask if you have any ideas.

thank you

App build stucks when without internet connection
 
 
Q