title: Xcode crashes due to 'There can only be one document registered with a given URL.'
body: <p>I am not able to start up XCode. Whenever it starts it just crashes with this error:</p>
  
  <pre><code>Application Specific Information:
  ProductBuildVersion: 8E3004b
  ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-12175.1/IDEKit/Application/IDEDocumentController.m:2136
  Details:  There can only be one document registered with a given URL. newDocument:&lt;IDEWorkspaceDocument: 0x7ff6612d6cd0&gt;(  0   -[IDEWorkspaceDocument init] (in IDEKit)
    1   -[NSDocument initForURL:withContentsOfURL:ofType:error:] (in AppKit)
    2   -[IDEWorkspaceDocument initForURL:withContentsOfURL:ofType:error:] (in IDEKit)
    3   -[NSDocumentController makeDocumentForURL:withContentsOfURL:ofType:error:] (in AppKit)
    4   __104-[NSDocumentController makeDocumentForURL:withContentsOfURL:alternateContents:ofType:completionHandler:]_block_invoke (in AppKit)
    5   -[NSDocumentController makeDocumentForURL:withContentsOfURL:alternateContents:ofType:completionHandler:] (in AppKit)
    6   __89-[NSDocumentController reopenDocumentForURL:withContentsOfURL:display:completionHandler:]_block_invoke (in AppKit)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/6SUrt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6SUrt.png" alt="enter image description here"></a></p>
  
  <p>How can I get Xcode start again?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Version of the xcode is 8.3.3</p>
  
  <p><a href="https://i.stack.imgur.com/87Sh9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/87Sh9.png" alt="enter image description here"></a></p>