# SwiftSyntax with Swift 5.1

**URL:** <https://forums.swift.org/t/swiftsyntax-with-swift-5-1/29051>\
**Category:** Source Tooling\
**Tags:** swiftsyntax\
**Created:** [September 23, 2019, 12:44am UTC](https://forums.swift.org/t/swiftsyntax-with-swift-5-1/29051 "2019-09-23T00:44:45Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![jonsteinmetz](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jonsteinmetz/32/9651_2.png) [@jonsteinmetz](https://forums.swift.org/u/jonsteinmetz)\
**Post date:** [November 20, 2019, 9:32pm UTC](https://forums.swift.org/t/swiftsyntax-with-swift-5-1/29051/12 "2019-11-20T21:32:45Z")

</div>

I am trying to use the Swift Package Manager to build a macOS command line tool to play with the SwiftSyntax library. But currently I am running into a runtime error "dyld: Library not loaded: @rpath/lib\_InternalSwiftSyntaxParser.dylib". I am using Xcode 11.2.1 and pointing SPM at the master branch of SwiftSyntax and tag "0.50100.0" as per the readme.  
I see from this thread and others that the dyld error appears to be a known problem. One suggestion is to "put a symlink to `lib_InternalSwiftSyntaxParser.dylib` in the same directory as the executable" but I am not sure where to find `lib_InternalSwiftSyntaxParser.dylib`, is that part of the main Swift branch?  
Some other comments in this thread indicate that the dyld issue has been fixed in the `swift-5.1-branch` branch but that branch is now a couple of months old and has not been merged into `master`. If I point SPM at `swift-5.1-branch` there are build errors which seem to stem from the fact that the `.gyp` files have not been processed. Is there a way to add this step as part of my build process?  
I apologize in advance if I have missed something obvious and thanks for the help.

---

_[View the full topic](https://forums.swift.org/t/swiftsyntax-with-swift-5-1/29051)._
