# Command line applications crashes with Xcode 10.2

**URL:** <https://forums.swift.org/t/command-line-applications-crashes-with-xcode-10-2/22192>\
**Category:** Using Swift\
**Created:** [March 27, 2019, 9:07am UTC](https://forums.swift.org/t/command-line-applications-crashes-with-xcode-10-2/22192 "2019-03-27T09:07:26Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![roland\_og](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roland\_og](https://forums.swift.org/u/roland_og)\
**Post date:** [March 27, 2019, 6:35pm UTC](https://forums.swift.org/t/command-line-applications-crashes-with-xcode-10-2/22192/18 "2019-03-27T18:35:51Z")

</div>

I bundle swift command line tools with my apps, and I was able to work around this by pointing them to the Frameworks folder of my app bundle. If the command line tools are in your resources folder, you can point "Runpath Search Paths" to @executable\_path/../Frameworks/.

I also needed to add an additional swift framework to my main bundle's frameworks. Dragging in /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftSwiftOnoneSupport.dylib to the frameworks list did the trick. Running a test swift 5 command line tool in macOS 10.13 gave me a Hello, World!

---

_[View the full topic](https://forums.swift.org/t/command-line-applications-crashes-with-xcode-10-2/22192)._
