Xcode 11 beta 5 crashes as soon as open it.

I have a big problem with Xcode. The same problem with beta 4 it's happening with beta 5.

I can't open the Xcode, because it crashes as soon as open it.

Follows the error message:


Process: Xcode [69152]

Path: /Users/USER/Downloads/Xcode-beta.app/Contents/MacOS/Xcode

Identifier: com.apple.dt.Xcode

Version: 11.0 (14908.4)

Build Info: IDEFrameworks-14908004000000000~13 (11M382q)

Code Type: X86-64 (Native)

Parent Process: ??? [1]

Responsible: Xcode [69152]

User ID: 501


Date/Time: 2019-07-29 22:41:26.362 -0300

OS Version: Mac OS X 10.15 (19A512f)

Report Version: 12

Bridge OS Version: 4.0 (17P50507f)

Anonymous UUID: EE6C1E98-FED6-4689-6CE9-9140DD027122


Sleep/Wake UUID: 2FF2F9A6-55DB-4D34-9648-9173F5C21E14


Time Awake Since Boot: 360000 seconds

Time Since Wake: 30000 seconds


System Integrity Protection: enabled


Crashed Thread: 17 Dispatch queue: discovery driver


Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY


Application Specific Information:

ProductBuildVersion: 11M382q

ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-14882.2/DVTFoundation/FilePaths/DVTFilePath.m:905

Details: str should be a string, but it is nil

Object: <DVTFilePath>

Method: +filePathForPathString:

Thread: <NSThread: 0x7fc0f1509630>{number = 12, name = (null)}

Hints:


Backtrace:

0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)

1 _DVTAssertionHandler (in DVTFoundation)

2 _DVTAssertionFailureHandler (in DVTFoundation)

3 +[DVTFilePath filePathForPathString:] (in DVTFoundation)

4 __76-[IDEExtensionManager startSearchingForExtensionsOfExtensionPoint:callback:]_block_invoke_2 (in IDEFoundation)

5 -[NSArray(DVTFoundationClassAdditions) dvt_objectsPassingTest:] (in DVTFoundation)

6 __76-[IDEExtensionManager startSearchingForExtensionsOfExtensionPoint:callback:]_block_invoke (in IDEFoundation)

7 __72-[IDEExtensionManager beginMatchingExtensionsWithAttributes:completion:]_block_invoke (in IDEFoundation)

8 0x00007fff59664081 (in PlugInKit)

9 _dispatch_call_block_and_release (in libdispatch.dylib)

10 _dispatch_client_callout (in libdispatch.dylib)

11 _dispatch_lane_serial_drain (in libdispatch.dylib)

12 _dispatch_lane_invoke (in libdispatch.dylib)

13 _dispatch_workloop_worker_thread (in libdispatch.dylib)

14 _pthread_wqthread.cold.1 (in libsystem_pthread.dylib)

15 _pthread_wqthread (in libsystem_pthread.dylib)

16 start_wqthread (in libsystem_pthread.dylib)


abort() called


Application Specific Signatures:

(str) != nil

.

.

.

.

Mine too. running Catalina beta 5 (19A526h) on a early 2015 MB 12 Retina

Same here. What do we do? I need to push code today...

Hey I also had this issue and eventually found a solution. Trying different things, I noticed that in Finder for files Xcode could open, when pulled up the "open with..." submenu there was beta 5 and beta 3, but also listings that didn't say Xcode but had the Xcode icon and what looked like build identifiers.
Following instructions to fix this by rebuilding the "launch services database" in terminal:

`/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user`
(This command probably will take a few seconds) then relaunch Finder, though maybe this isn't necessary for the issue:

`killall Finder`

After this I was able to launch Xcode Beta 5.

God bless you. You saved my life.


I had the same issue with OS X Catalina, and Xcode 11.1 (both no beta, normal release version). Xcode was crashing after opening a specific project with a specific local Mac Account. After running your commands, it works.

``

I did this, and everything else I can find and I still have the problem. I try to open a project and Xcode crashes:


Release Xcode and Catalina 10.15.1 (19B88)

```

Process: Xcode [1420]

Path: /Applications/Xcode.app/Contents/MacOS/Xcode

Identifier: com.apple.dt.Xcode

Version: 11.1 (15405)

Build Info: IDEFrameworks-15405000000000000~13 (11A1027)

App Item ID: 497799835

App External ID: 832925179

Code Type: X86-64 (Native)

Parent Process: ??? [1]

Responsible: Xcode [1420]

User ID: 504



Date/Time: 2019-10-28 15:25:24.591 -0700

OS Version: Mac OS X 10.15 (19A603)

Report Version: 12

Bridge OS Version: 4.0 (17P572)

Anonymous UUID: 6CD43C5C-E2EE-E98D-4A82-7A3A1ECCF1A7



Sleep/Wake UUID: FE029137-058E-4477-9815-E8298C811884



Time Awake Since Boot: 2600 seconds

Time Since Wake: 1300 seconds



System Integrity Protection: enabled



Crashed Thread: 10 Dispatch queue: IDEFolder Filetype Preheating work queue



Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY



Application Specific Information:

ProductBuildVersion: 11A1027

ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-15403/DVTFoundation/FileTypes/DVTFileDataType.mm:156

Details: Assertion failed: identCStr && identCStr[0]

Function: DVTPrimitiveFileDataType *_DVTGetPrimitiveFileDataTypeForIdentifierCStr_unlocked(const char *)

Thread: <NSThread: 0x7fcc40b54d20>{number = 17, name = (null)}

Hints:

I have exactly the same problem. I tried everything that I fond to fixe it but with no success. Any ideas?

Did you try with XCode 11.2 (most recent is 11.2.1 GM Seed

I have

1) removed MyProject.xcworkspace file
2) and made pod install
after the mentioned steps and it helped.

Tried this - did not fix for me.....

Yes, tried that and the Version 11.3 beta (11C24b), also update Catalina to 10.15.2 Beta (19C46a).


I opened at DTS inciident and they were no help.


Using a different Catalina user account did not help but creating a new APFS volume, installing Mohave there with latest GM Xcode, (slack, github etc) then Shutdown and reboot into that to use Xcode lets me build again.

Same problem here: Assertion "identCStr && identCStr[0]" failed in DVTFileDataType.mm:156

Interestingly the same project can be openend just fine on another Mac (same XCode, same macOS), so I assume it has something to do with the environment.


EDIT: I managed to find a workaround: my *.xcodeproj contained a bunch of test files, which really were compressed files with a custom file extension (e.g. a file named "*.cb7" being a "*.7z"). After renaming these files, XCode would open again. I assume some LaunchService problems (being the one maintaining the association between extension and application, but I did not investigate further.

ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-14882.2/DVTFoundation/FilePaths/DVTFilePath.m:905
Details: str should be a string, but it is nil

It's happening on Xcode 11.6, 11.7. 12.0.1, 12.2 beta3.
When I change constraints XCode crashes.


I tried the commands above without success.


Xcode 11 beta 5 crashes as soon as open it.
 
 
Q