# Xcode 10.2 (beta) & Command Line Tools

**URL:** <https://forums.swift.org/t/xcode-10-2-beta-command-line-tools/19998>\
**Category:** Using Swift\
**Created:** [January 30, 2019, 10:56pm UTC](https://forums.swift.org/t/xcode-10-2-beta-command-line-tools/19998 "2019-01-30T22:56:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Gili](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/patrick_gili/32/6033_2.png) [@Patrick\_Gili](https://forums.swift.org/u/Patrick_Gili)\
**Post date:** [January 30, 2019, 10:56pm UTC](https://forums.swift.org/t/xcode-10-2-beta-command-line-tools/19998/1 "2019-01-30T22:56:15Z")

</div>

Has anyone figured out how to build and run Swift command line tools in the Xcode 10.2 (beta)?

Even with the simplest application, I receive the following error when I run the application:

**dyld: Library not loaded: @rpath/libswiftCore.dylib**

---

<div class="post-metadata">

**Author:** ![NeoNacho](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/neonacho/32/1368_2.png) [@NeoNacho](https://forums.swift.org/u/NeoNacho)\
**Post date:** [January 30, 2019, 11:08pm UTC](https://forums.swift.org/t/xcode-10-2-beta-command-line-tools/19998/2 "2019-01-30T23:08:51Z")

</div>

This issue is described in the [Swift 5 release notes](https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_beta_release_notes/swift_5_release_notes_for_xcode_10_2_beta?language=objc):

> - Swift command line projects crash on launch with “dyld: Library not loaded” errors. (46824656) **Workaround:** Add a user-defined build setting `SWIFT_FORCE_STATIC_LINK_STDLIB=YES` .

---

<div class="post-metadata">

**Author:** ![Patrick\_Gili](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/patrick_gili/32/6033_2.png) [@Patrick\_Gili](https://forums.swift.org/u/Patrick_Gili)\
**Post date:** [January 31, 2019, 12:28pm UTC](https://forums.swift.org/t/xcode-10-2-beta-command-line-tools/19998/3 "2019-01-31T12:28:35Z")

</div>

Thank you Boris. I read the release notes, but it seems this one escaped me.

---

<div class="post-metadata">

**Author:** ![Martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Martin](https://forums.swift.org/u/Martin)\
**Post date:** [March 4, 2019, 2:11pm UTC](https://forums.swift.org/t/xcode-10-2-beta-command-line-tools/19998/4 "2019-03-04T14:11:26Z")

</div>

According to the [Swift 5 Release Notes for Xcode 10.2 Beta 3](https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_beta_3_release_notes/swift_5_release_notes_for_xcode_10_2_beta_3) you can now download the “Swift 5 Runtime Support for Command Line Tools” for macOS 10.14.3 and earlier.

That package installs various Swift runtime libraries in /usr/lib/swift, so that dynamic linking works again.
