# Xcode 10.2 beta stopped working

**URL:** <https://forums.swift.org/t/xcode-10-2-beta-stopped-working/20108>\
**Category:** Using Swift\
**Tags:** swift5, xcode\
**Created:** [February 4, 2019, 2:53am UTC](https://forums.swift.org/t/xcode-10-2-beta-stopped-working/20108 "2019-02-04T02:53:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CTMacUser](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ctmacuser/32/1802_2.png) [@CTMacUser](https://forums.swift.org/u/CTMacUser)\
**Post date:** [February 4, 2019, 2:53am UTC](https://forums.swift.org/t/xcode-10-2-beta-stopped-working/20108/1 "2019-02-04T02:53:56Z")

</div>

I tried out the Xcode 10.2 beta a few days ago to check out Swift 5. I used it on my macOS 10.14.2 boot drive and my 10.14.4 beta SSD, and it seemed fine both times. A few days ago, Xcode stopped working; the Swift CLI tool I was working on, and a new project, crash before they even get to `main`:

```
dyld: Library not loaded: /usr/lib/swift/libswiftSwiftOnoneSupport.dylib
  Referenced from: /Users/daryle/Library/Developer/Xcode/DerivedData/CLITest-dnzykavxvqkbaucmyxrrofnvancn/Build/Products/Debug/CLITest
  Reason: image not found

```

Last time, my laptop was in the middle of a 10.14.3 install, but it still persists even though the install is finished.

I saw a [suggested thread](https://forums.swift.org/t/xcode-10-2-beta-command-line-tools/19998), and "`SWIFT_FORCE_STATIC_LINK_STDLIB=YES`" didn't seem to help (or I put it in wrong).

---

<div class="post-metadata">

**Author:** ![jrose](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jrose/32/408_2.png) [@jrose](https://forums.swift.org/u/jrose)\
**Post date:** [February 4, 2019, 5:57pm UTC](https://forums.swift.org/t/xcode-10-2-beta-stopped-working/20108/2 "2019-02-04T17:57:48Z")

</div>

That's definitely the appropriate release note for what you're seeing. Did you add `SWIFT_FORCE_STATIC_LINK_STDLIB` to the right target, in all configurations? That's usually what I get wrong.

---

<div class="post-metadata">

**Author:** ![CTMacUser](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ctmacuser/32/1802_2.png) [@CTMacUser](https://forums.swift.org/u/CTMacUser)\
**Post date:** [February 6, 2019, 8:01am UTC](https://forums.swift.org/t/xcode-10-2-beta-stopped-working/20108/3 "2019-02-06T08:01:20Z")

</div>

Never tried; by the time I looked at the problem some more, Xcode 10.2 beta 2 came out, which has seemed to fix the immediate problem.
