title: dyld: Library not loaded: @rpath/libswiftDispatch.dylib
body: <p>I started to use XCode 9.2 (13772) a day ago and I was walking through some basic tutorials, when it crashed with the message:</p>
  
  <pre><code>  Library not loaded: @rpath/libswiftDispatch.dylib
    Referenced from: /Applications/Xcode.app/Contents/MacOS/Xcode
    Reason: image not found
  </code></pre>
  
  <p>Later I discovered that some other applications started to crash with the same message when I tried to open them. I reinstalled all those applications, including XCode, and it helped for all of them, but XCode.
  It still crashes the same way.</p>
  
  <p>Does anybody have any ideas how to fix this? I would try to use AppCode, but it still relies on XCode and thus can't work until this issue is resolved.</p>
  
  <p>Here's detailed stack from Apple's crash report:</p>
  
  <pre><code>Dyld Error Message:
    Library not loaded: @rpath/libswiftDispatch.dylib
    Referenced from: /Applications/Xcode.app/Contents/MacOS/Xcode
    Reason: image not found
  
  Binary Images:
         0x1093db000 -        0x1093dcff7  com.apple.dt.Xcode (9.2 - 13772) &lt;99E158D7-ADB3-3CD8-9762-716A74599C12&gt; /Applications/Xcode.app/Contents/MacOS/Xcode
         0x1093e7000 -        0x10999dfff  com.apple.dt.DVTFoundation (9.2 - 13763) &lt;78811324-8E42-36B8-81E3-74A1D4AC5F7E&gt; /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation
         0x109c08000 -        0x109f85ff7  com.apple.dt.DVTKit (9.2 - 13763) &lt;76F3AD2F-A605-3FC3-BF66-E09B2B991852&gt; /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
         0x10a1df000 -        0x10a94efff  com.apple.dt.IDEFoundation (9.2 - 13772) &lt;CC7015F9-971F-3C05-A3E9-2A20694D028B&gt; /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation
         0x10ae83000 -        0x10b842fff  com.apple.dt.IDEKit (9.2 - 13772) &lt;C19A9742-1C5E-345D-B0A5-E2CB0D88EA39&gt; /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/IDEKit
         0x10bf9b000 -        0x10bfa9fff +libswiftAVFoundation.dylib (4.0.3 - 900.0.74.1) &lt;FC937BB3-D0FB-35D1-9270-FA2DC117821B&gt; /Applications/Xcode.app/Contents/Frameworks/libswiftAVFoundation.dylib
         0x10bfb9000 -        0x10c37cfff +libswiftCore.dylib (4.0.3 - 900.0.74.1) &lt;CE685663-7897-3330-83B6-74EEFE1A116F&gt; /Applications/Xcode.app/Contents/Frameworks/libswiftCore.dylib
         0x10c6b4000 -        0x10c6bbff7 +libswiftCoreAudio.dylib (4.0.3 - 900.0.74.1) &lt;68E5B93C-487C-31C1-AC5D-4BFDCCF4B903&gt; /Applications/Xcode.app/Contents/Frameworks/libswiftCoreAudio.dylib
         0x10c6ca000 -        0x10c6cdff7 +libswiftCoreFoundation.dylib (4.0.3 - 900.0.74.1) &lt;51C48082-D5E2-34FD-9E5E-E5B822A3A1D4&gt; /Applications/Xcode.app/Contents/Frameworks/libswiftCoreFoundation.dylib
         0x10c6d6000 -        0x10c6e6ff7 +libswiftCoreGraphics.dylib (4.0.3 - 900.0.74.1) &lt;6EE1A751-4A73-3BFD-B683-6F232E2CA3BC&gt; /Applications/Xcode.app/Contents/Frameworks/libswiftCoreGraphics.dylib
         0x10c6ff000 -        0x10c704ffe +libswiftCoreImage.dylib (4.0.3 - 900.0.74.1) &lt;CBA31255-A204-3F42-87F9-DC54338B97F0&gt; /Applications/Xcode.app/Contents/Frameworks/libswiftCoreImage.dylib
         0x10c70b000 -        0x10c715ff7 +libswiftCoreMedia.dylib (4.0.3 - 900.0.74.1) &lt;6441DF57-06CB-3AFF-B52E-8CC230D11D97&gt; /Applications/Xcode.app/Contents/Frameworks/libswiftCoreMedia.dylib
         0x10c71d000 -        0x10c723fff +libswiftDarwin.dylib (4.0.3 - 900.0.74.1) &lt;0C6938A7-E862-3D6C-A235-0C9293F73141&gt; /Applications/Xcode.app/Contents/Frameworks/libswiftDarwin.dylib
         0x11563d000 -        0x11568798f  dyld (519.2.2) &lt;6695F30B-4E88-3C0B-9867-7D738C44A3E6&gt; /usr/lib/dyld
      0x7fff3a388000 -     0x7fff3b1e5fff  com.apple.AppKit (6.9 - 1561.20.106) &lt;D03AE413-C601-3B7C-A3D4-FC32F4C13940&gt; /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
      0x7fff3c5c8000 -     0x7fff3c5c8fff  com.apple.Cocoa (6.11 - 22) &lt;1553F279-3C7B-3A48-87E6-35237F7F452E&gt; /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
      0x7fff3cd62000 -     0x7fff3d202fe7  com.apple.CoreFoundation (6.9 - 1451) &lt;7AFE9C8F-A562-3AFC-8402-117AA02F57E9&gt; /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
      0x7fff3ee98000 -     0x7fff3f25dfff  com.apple.Foundation (6.9 - 1451) &lt;B99F94E7-117E-39CC-A65D-B7AEA8998481&gt; /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
      0x7fff624f9000 -     0x7fff624faff3  libSystem.B.dylib (1252) &lt;47329E26-DC23-3EBA-9461-37755368327D&gt; /usr/lib/libSystem.B.dylib
      0x7fff63afa000 -     0x7fff63ee87e7  libobjc.A.dylib (723) &lt;93A92316-DE1E-378C-8891-99720B50D075&gt; /usr/lib/libobjc.A.dylib
  </code></pre>