For a very long time I've been uploading archives to Appstore Connect using
xcodebuild -exportArchive \
-archivePath /the/path/to/product.xcarchive \
-allowProvisioningUpdates \
-exportOptionsPlist export-options.plist
With Xcode 15 beta, this is failing with
2023-09-06 11:01:14.030 xcodebuild[29720:27205289] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/xv/5x5m3g3x357d3gd3_k37gpl80000gn/T/ca73_2023-09-06_11-01-14.029.xcdistributionlogs".
2023-09-06 11:01:26.681 xcodebuild[29720:27205289] *** Assertion failure in +[UNUserNotificationCenter currentNotificationCenter], UNUserNotificationCenter.m:55
2023-09-06 11:01:26.681 xcodebuild[29720:27205289] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'bundleProxyForCurrentProcess is nil: mainBundle.bundleURL file:///Applications/Xcode-15.0.0-Beta.8.app/Contents/Developer/usr/bin/'
*** First throw call stack:
(
0 CoreFoundation 0x000000018114f154 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x0000000180c6e4d4 objc_exception_throw + 60
2 Foundation 0x0000000182102a88 -[NSCalendarDate initWithCoder:] + 0
3 UserNotifications 0x000000018c7b63f0 __53+[UNUserNotificationCenter currentNotificationCenter]_block_invoke + 680
4 libdispatch.dylib 0x0000000180e48400 _dispatch_client_callout + 20
5 libdispatch.dylib 0x0000000180e49c40 _dispatch_once_callout + 32
6 UserNotifications 0x000000018c7b6144 +[UNUserNotificationCenter currentNotificationCenter] + 156
7 IDEFoundation 0x00000001044a34b4 -[IDEDistributionUploadStep upload] + 620
8 IDEFoundation 0x00000001044a48d8 -[IDEDistributionUploadStep loadDrivableFromExportOptions:error:] + 20
9 IDEFoundation 0x000000010462d908 -[IDEDistributionDriver runWithDestinationPath:wantsExportStep:] + 1988
10 IDEFoundation 0x000000010462d0ec -[IDEDistributionDriver runWithDestinationPath:error:] + 28
11 Xcode3Core 0x000000010044a198 -[Xcode3CommandLineBuildTool(ArchiveSchemeAction) _distributeArchiveAndExit] + 1052
12 Xcode3Core 0x0000000100481408 -[Xcode3CommandLineBuildTool run] + 2412
13 libxcodebuildLoader.dylib 0x00000001001fdfcc XcodeBuildMain + 948
14 dyld 0x0000000180c9ff28 start + 2236
)
** INTERNAL ERROR: Uncaught exception **
Uncaught Exception: bundleProxyForCurrentProcess is nil: mainBundle.bundleURL file:///Applications/Xcode-15.0.0-Beta.8.app/Contents/Developer/usr/bin/
Stack:
0 __exceptionPreprocess (in CoreFoundation)
1 objc_exception_throw (in libobjc.A.dylib)
2 -[NSCalendarDate initWithCoder:] (in Foundation)
3 __53+[UNUserNotificationCenter currentNotificationCenter]_block_invoke (in UserNotifications)
4 _dispatch_client_callout (in libdispatch.dylib)
5 _dispatch_once_callout (in libdispatch.dylib)
6 +[UNUserNotificationCenter currentNotificationCenter] (in UserNotifications)
7 -[IDEDistributionUploadStep upload] (in IDEFoundation)
8 -[IDEDistributionUploadStep loadDrivableFromExportOptions:error:] (in IDEFoundation)
9 -[IDEDistributionDriver runWithDestinationPath:wantsExportStep:] (in IDEFoundation)
10 -[IDEDistributionDriver runWithDestinationPath:error:] (in IDEFoundation)
11 -[Xcode3CommandLineBuildTool(ArchiveSchemeAction) _distributeArchiveAndExit] (in Xcode3Core)
12 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
13 XcodeBuildMain (in libxcodebuildLoader.dylib)
14 start (in dyld)
I'v already reported this to Feedback Assistant as FB13042281 but I was wondering if anybody has a workaround. With Xcode 15 GM likely to drop in the next week or so, this is going to put a huge crimp into my workflows.