Mac M1 Xcode 13.1 crash with Archive Distribute App

Archive -> Distribute App -> Development

Xcode quit unexpectedly.

Problem Details and System Configuration:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Xcode [572]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               13.1 (19466)
Build Info:            IDEFrameworks-19466000000000000~20 (13A1030d)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2021-10-27 14:54:03.3814 +0800
OS Version:            macOS 12.0.1 (21A559)
Report Version:        12
Anonymous UUID:        3D16F687-606E-36EA-60C7-91FF7D539D01

Sleep/Wake UUID:       66366CE9-3629-40EB-B045-A2B99351FAD9

Time Awake Since Boot: 4000 seconds
Time Since Wake:       2953 seconds

System Integrity Protection: enabled

Crashed Thread:        11  Dispatch queue: ConcurrentQueue: -[IDEDistributionSummaryStepViewController viewDidLoad]_block_invoke

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[__NSCFCalendar rangeOfUnit:startDate:interval:forDate:]: date cannot be nil
UserInfo: (null)
Open FDs: 79/7168
Hints:
0: Calling block provided by:
0   DVTDispatchAsync (in DVTFoundation)
1   -[IDEDistributionSummaryStepViewController viewDidLoad] (in IDEKit)
2   -[NSViewController _sendViewDidLoad] (in AppKit)
3   -[NSViewController _loadViewIfRequired] (in AppKit)
4   -[NSViewController view] (in AppKit)

Model: iMac21,1, BootROM 7429.41.5, proc 8:4:4 processors, 16 GB, SMC 
Graphics: Apple M1, Apple M1, Built-In
Display: iMac, Retina 4.5K (4480 x 2520), Main, MirrorOff, Online
Memory Module: LPDDR4
AirPort: Wi-Fi, wl0: Sep 13 2021 20:41:31 version 18.20.310.14.7.8.119 FWID 01-bb7889d2
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Network Service: Ethernet, Ethernet, en0
Network Service: iPhone 4, Ethernet, en7
Network Service: iPhone 5, Ethernet, en11
USB Device: USB31Bus
USB Device: iPhone
USB Device: USB31Bus
USB Device: iPhone
USB Device: USB31Bus
USB Device: USB2.0 Hub
USB Device: USB3.0 Hub
Thunderbolt Bus: iMac, Apple Inc.
Thunderbolt Bus: iMac, Apple Inc.

I am experiencing the same issue! Did you manage to find any workaround for this?

FYI, if you are still having issues with this, it is a Region/Country issue. I have fixed it by changing them both in System Preferences.

I am experiencing the same issue!

xcode " Preparing summary" crash

xcode 13.1 -- 2015 Macbook 12' CPU intel 1.1 --- Mac OS 11.5.2

Mac M1 Xcode 13.1 crash with Archive Distribute App
 
 
Q