xcode 9 beta 6 crashing on High Sierra beta 7

I'm running xcode 9 beta 6 on High Sierra beta 7. When I open it it crashes within several seconds. Anyone else, any fixes? I think this started happening only after it asked to update the xcode server section. I had the server and bots working with beta 4 but they stopped working in beta 5 and now beta 6 appears to crash. I have turned off the server and bots section and removed the bot account, but it is still crashing so possibly that is not related. I'll be in beta 5 unless there is a resolution.


Edit:

Uh oh, xcode beta 5 is crashing too! High Sierra beta 7 is crashing all my xcodes, anyone else with this problem?

Accepted Reply

macOS High Sierra 10.13 beta 8 fixed it for me.

Replies

I'm seeing this too!


Even Xcode 8 is is crashing 😮

It's happen to me also

Same issue here, any Xcode version crashes a few seconds after I open my (relatively large) project. Tried opening a sample (and simple) project and it _seemed_ to work fine, though.


If anyone needs crash reports, logs or anything else I can provide, let me know!

I have switched to the new build system as a temporary workaround, and it works well for me.


mkdir -p /path/to/your/Workspace.xcworkspace/xcshareddata
/usr/libexec/PlistBuddy -c "Add :BuildSystemType string Latest" /path/to/your/Workspace.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

Hi,

had the same problem with Xcode 9 beta 6 and Xcode 8 on macOS 10.13 Beta 7.


Turning off the indexer solved the crashing problem, but editing without code completion is no fun at all.


defaults write com.apple.dt.XCode IDEIndexDisable 1


Cheers,

Markus

This workaround is working on me. But the new build system failed on my project. 😢 it said `error: Duplicated task: CompileDTraceScript` when i add third party library

Same here, having crashes on the latest beta with either Xcode 9 or Xcode 8.3.3.

The workaround suggested by @Pegolon, doesnt seems to work for me.


Thread 25 Crashed:
0   com.apple.CoreFoundation       0x00007fff2acdb418 _cow_copy + 168
1   com.apple.CoreFoundation       0x00007fff2ad893f7 -[__NSFrozenDictionaryM mutableCopyWithZone:] + 167
2   com.apple.dt.DVTFoundation     0x000000010419f49a -[DVTMacroExpansionScope(MRR) lookupValueForMacroName:hash:withCursor:] + 559
3   com.apple.dt.DVTFoundation     0x00000001041c8a59 -[DVTMacroExpansionString_Substitution dvt_evaluateAsStringInScope:withState:] + 733
4   com.apple.dt.DVTFoundation     0x00000001041ca558 -[DVTMacroExpansionString_StringSubstitution dvt_evaluateAsStringListInScope:withState:] + 23
5   com.apple.dt.DVTFoundation     0x00000001041caf3d -[DVTMacroExpansionString_Concatenation dvt_evaluateAsStringListInScope:withState:] + 310
6   com.apple.dt.DVTFoundation     0x00000001041ccbf9 -[DVTMacroExpansionStringList_NonLiteral dvt_evaluateAsStringListInScope:withState:] + 134
7   com.apple.dt.DVTFoundation     0x000000010419fe90 -[DVTMacroExpansionScope(MRR) evaluatedStringListValueForMacroNamed:] + 183
8   com.apple.Xcode.DevToolsCore   0x000000011656f426 dg_get_string_list + 100
9   com.apple.Xcode.DevToolsCore   0x000000011640828c -[XCCompilerSpecification adjustedFileTypeForInputFileAtPath:originalFileType:withMacroExpansionScope:] + 826
10  com.apple.Xcode.DevToolsCore   0x00000001163be9f5 -[PBXCompilerSpecificationGcc computeDependenciesForInputNodes:ofType:variant:architecture:outputDirectory:withMacroExpansionScope:] + 1175
11  com.apple.Xcode.DevToolsCore   0x000000011640a1f5 -[XCCompilerSpecification computeDependenciesForFilePath:ofType:outputDirectory:withMacroExpansionScope:] + 845
12  com.apple.Xcode.DevToolsCore   0x00000001164ea834 -[XCBuildRuleDGSnapshot(DependencyGraphCreation) computeDependenciesForFilePath:ofType:forBuildFileReference:withOutputDirectory:parameterMacros:withMacroExpansionScope:] + 7647
13  com.apple.Xcode.DevToolsCore   0x00000001164eb9ab -[XCBuildRuleDGSnapshot(DependencyGraphCreation) computeDependenciesForBuildFileReference:withOutputDirectory:parameterMacros:withMacroExpansionScope:] + 975
14  com.apple.Xcode.DevToolsCore   0x00000001164e0fe3 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForBuildFileReference:withMacroExpansionScope:] + 6202
15  com.apple.Xcode.DevToolsCore   0x00000001164cae03 -[XCBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForAllBuildFileReferencesWithMacroExpansionScope:] + 2528
16  com.apple.Xcode.DevToolsCore   0x00000001164e2ab1 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForAllBuildFileReferencesWithMacroExpansionScope:] + 69
17  com.apple.Xcode.DevToolsCore   0x00000001164e4ee0 -[XCSourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesWithMacroExpansionScope:] + 9222
18  com.apple.Xcode.DevToolsCore   0x000000011640ea85 -[XCProductTypeSpecification computeDependenciesWithMacroExpansionScope:] + 2085
19  com.apple.Xcode.DevToolsCore   0x00000001164c2c2f -[XCNativeTargetDGSnapshot(DependencyGraphCreation) computeDependenciesWithMacroExpansionScope:] + 4448
20  com.apple.Xcode.DevToolsCore   0x0000000116382018 -[PBXTargetBuildContext createDependencyGraphWithTargetDGSnapshot:] + 4250
21  com.apple.Xcode.DevToolsCore   0x000000011639e07b -[PBXTargetBuildContext(DependencyGraphEvents) dg_setTargetSnapshot:] + 511
22  com.apple.Xcode.DevToolsCore   0x000000011639d722 -[PBXTargetBuildContext(DependencyGraphEvents) processDependencyGraphEvents] + 286
23  com.apple.Xcode.DevToolsCore   0x0000000116404827 -[XCBlockQueue _processNextBlockInThreadSlotNumber:] + 463
24  com.apple.Xcode.DevToolsCore   0x0000000116404bcc -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 299
25  com.apple.Foundation           0x00007fff2cc996d8 __NSThread__start__ + 1197
26  libsystem_pthread.dylib       0x00007fff523ce6c1 _pthread_body + 340
27  libsystem_pthread.dylib       0x00007fff523ce56d _pthread_start + 377
28  libsystem_pthread.dylib       0x00007fff523cdc5d thread_start + 13

After doing the following command in terminal:
defaults write com.apple.dt.XCode IDEIndexDisable 1


I than loaded my project in AppCode, recompiled and ran:

defaults write com.apple.dt.XCode IDEIndexDisable 0


After that I was able to reload in Xcode8 and I can program again...


If I load it in Xcode9, it starts dying again..and I have to run the steps I outlined.


EDIT:

Weirdly, its not every project which has this problem. Some of my projects load correctly in Xcode9 and don't crash.

its work, but crashing at building project

Yep, same for me...crashes at building the project.

same problem, any solution? I can`t work now...

Same here. Project is opened but crashes on compile. Switching to the new build system doesn't work for me, as it fails every time.

Me too! It seems work when I do not use the device but use the simulator, and the device must be not connect the host! But if I change to the device, I will crash immediatelly!

maybe, this bug is related the new high serria os beta 7, not related the XCode, because all version of my xcode crashed!

Agreed!, does Apple known this?