Xcode 9.0.1 crash on App Store submit / export

Hi,


I'm working on a Mac App and I'm trying to submit it for the first time to the App Store.

Everytime I try to validate / submit to the app store / export for later upload to the App Store, Xcode crashes.

The crash occurs just after I press "Next" after selecting the certificates and provisionning profile.

I've tried pretty much every combination of certificates I could think of, with or without the symbols, different target OS, it always crashes in the exact same way.


I've seen a few threads referencing similar issues already but with older versions of Xcode, and fixes that don't work for me.

It seems similar to this (unsolved) issue, but seems to occurs at a different step: https://forums.developer.apple.com/thread/86638?q=crash%20app%20store


My Developer account is linked with a team with a valid subscription (I'm a team admin, with App Manager iTunes Connect access).

My personal subscription expired years ago. It shouldn't be related but I saw someone mention it on StackOverflow.


The app I'm working on is 7 years old, and has been distributed outside of the App Store so far, so there could be some legacy default settings I missed.

The stack trace is below.

I'll appreciate any help you can provide, we're anxious to distribute our app on the App Store ASAP.


Xcode's stack trace is below.

Thanks in advance,

Jeremy


Process:               Xcode [9983]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               9.0.1 (13249)
Build Info:            IDEFrameworks-13249000000000000~2
App Item ID:           497799835
App External ID:       823984564
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [9983]
User ID:               503


Date/Time:             2017-10-22 09:24:45.591 +0300
OS Version:            Mac OS X 10.13 (17A405)
Report Version:        12
Bridge OS Version:     3.0 (14Y661)
Anonymous UUID:        706B0083-F6C5-7CD5-F73D-E3143BF14488


Sleep/Wake UUID:       81C83DB9-12A0-4FD2-B5AD-0ADC9028DDCD


Time Awake Since Boot: 100000 seconds
Time Since Wake:       4900 seconds


System Integrity Protection: disabled


Crashed Thread:        1  Dispatch queue: ConcurrentQueue: -[IDEDistributionPackagingStepViewController viewDidInstall]_block_invoke


Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000007ff10384d58
Exception Note:        EXC_CORPSE_NOTIFY


Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [0]


VM Regions Near 0x7ff10384d58:
    CG backing stores      000000013eca9000-000000013fc30000 [ 15.5M] rw-/rw- SM=PRV 
-->
    JS JIT generated code  0000466313800000-0000466313801000 [    4K] ---/rwx SM=NUL 


Application Specific Information:
ProductBuildVersion: 9A1004


Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib         0x00007fff6d27be76 mach_msg_trap + 10
1   libsystem_kernel.dylib         0x00007fff6d27b390 mach_msg + 60
2   com.apple.CoreFoundation       0x00007fff45bcf475 __CFRunLoopServiceMachPort + 341
3   com.apple.CoreFoundation       0x00007fff45bce7c7 __CFRunLoopRun + 1783
4   com.apple.CoreFoundation       0x00007fff45bcde43 CFRunLoopRunSpecific + 483
5   com.apple.HIToolbox           0x00007fff44eed866 RunCurrentEventLoopInMode + 286
6   com.apple.HIToolbox           0x00007fff44eed5d6 ReceiveNextEventCommon + 613
7   com.apple.HIToolbox           0x00007fff44eed354 _BlockUntilNextEventMatchingListInModeWithFilter + 64
8   com.apple.AppKit               0x00007fff431ea9f7 _DPSNextEvent + 2085
9   com.apple.AppKit               0x00007fff4397fd98 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
10  com.apple.dt.DVTKit           0x0000000104144a1e -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 390
11  com.apple.AppKit               0x00007fff431df805 -[NSApplication run] + 764
12  com.apple.AppKit               0x00007fff431ae9a6 NSApplicationMain + 804
13  libdyld.dylib                 0x00007fff6d135145 start + 1


Thread 1 Crashed:: Dispatch queue: ConcurrentQueue: -[IDEDistributionPackagingStepViewController viewDidInstall]_block_invoke
0   libobjc.A.dylib               0x00007fff6c538d6f objc_retain + 31
1   com.apple.dt.IDEKit           0x00000001056ea361 __60-[IDEDistributionPackagingStepViewController viewDidInstall]_block_invoke_2.80 + 303
2   com.apple.dt.DVTFoundation     0x0000000103b8d0eb __DVTDispatchGroupAsync_block_invoke + 806
3   libdispatch.dylib             0x00007fff6d1037a2 _dispatch_call_block_and_release + 12
4   libdispatch.dylib             0x00007fff6d0fbf64 _dispatch_client_callout + 8
5   libdispatch.dylib             0x00007fff6d10f110 _dispatch_continuation_pop + 599
6   libdispatch.dylib             0x00007fff6d1068e0 _dispatch_async_redirect_invoke + 703
7   libdispatch.dylib             0x00007fff6d0fdb56 _dispatch_root_queue_drain + 515
8   libdispatch.dylib             0x00007fff6d0fd902 _dispatch_worker_thread3 + 101
9   libsystem_pthread.dylib       0x00007fff6d3bf1ca _pthread_wqthread + 1387
10  libsystem_pthread.dylib       0x00007fff6d3bec4d start_wqthread + 13

I updated XCode to version 9 since published, and met the same issue around a month ago.

I tried reinstall XCode 9 yesterday, but still crash!

Same problem here.

I had the same issue, but deactivating "sandbox" in xcode project, and reactivating it (ON/OFF), solved this.

Hopefully this helps.

Xcode 9.0.1 crash on App Store submit / export
 
 
Q