# Building SwiftSyntax and missing \_InternalSwiftSyntaxParser

**URL:** <https://forums.swift.org/t/building-swiftsyntax-and-missing-internalswiftsyntaxparser/19805>\
**Category:** Source Tooling\
**Created:** [January 25, 2019, 9:03am UTC](https://forums.swift.org/t/building-swiftsyntax-and-missing-internalswiftsyntaxparser/19805 "2019-01-25T09:03:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![krzyzanowskim](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/krzyzanowskim/32/1282_2.png) [@krzyzanowskim](https://forums.swift.org/u/krzyzanowskim)\
**Post date:** [January 25, 2019, 9:03am UTC](https://forums.swift.org/t/building-swiftsyntax-and-missing-internalswiftsyntaxparser/19805/1 "2019-01-25T09:03:49Z")

</div>

Hi,

Not sure if that's the right place to ask, but didn't find any better. I'm trying to build SwiftSyntax along the swift build (`--swiftsyntax`) but encounter a problem. When build swift with this command:

```swift
swift/utils/build-script --release-debuginfo --swiftpm --llbuild --build-swift-static-stdlib --swiftsyntax --skip-ios --skip-tvos --skip-watchos --skip-test-cmark --skip-test-swift --skip-test-llbuild --skip-test-swiftpm

```

it ends with

```swift
swift-source/swift-syntax/Sources/SwiftSyntax/SyntaxParser.swift:17:8: error: no such module '_InternalSwiftSyntaxParser'
import _InternalSwiftSyntaxParser
       ^

Error: Building SwiftSyntax failed

```

Swift source tag `swift-5.0-DEVELOPMENT-SNAPSHOT-2019-01-23-a`

Am I doing something wrong here? I guess my question is how to build `swift-syntax` master?

---

<div class="post-metadata">

**Author:** ![beccadax](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/beccadax/32/34217_2.png) [@beccadax](https://forums.swift.org/u/beccadax)\
**Post date:** [January 25, 2019, 10:11am UTC](https://forums.swift.org/t/building-swiftsyntax-and-missing-internalswiftsyntaxparser/19805/2 "2019-01-25T10:11:31Z")

</div>

SwiftSyntax's master branch uses a new, much faster interface to the compiler that isn't available in Swift's 5.0 branch—it's only in Swift's master branch. (Yes, there's already stuff in master that isn't in the beta—there wasn't enough time to thoroughly test such a large change.)

Make sure that your compiler and SwiftSyntax repos are on matching branches. The easiest way to do this is by running `utils/update-checkout --scheme swift-5.0-branch` or `utils/update-checkout --scheme master`, depending on which one you want to build.

---

<div class="post-metadata">

**Author:** ![krzyzanowskim](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/krzyzanowskim/32/1282_2.png) [@krzyzanowskim](https://forums.swift.org/u/krzyzanowskim)\
**Post date:** [January 25, 2019, 10:25am UTC](https://forums.swift.org/t/building-swiftsyntax-and-missing-internalswiftsyntaxparser/19805/3 "2019-01-25T10:25:06Z")

</div>

> [@beccadax](#):
>
> it's only in Swift's master branch

Great. thanks. Will build master then.

---

<div class="post-metadata">

**Author:** ![akyrtzi](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/akyrtzi/32/4963_2.png) [@akyrtzi](https://forums.swift.org/u/akyrtzi)\
**Post date:** [January 25, 2019, 5:55pm UTC](https://forums.swift.org/t/building-swiftsyntax-and-missing-internalswiftsyntaxparser/19805/4 "2019-01-25T17:55:42Z")

</div>

You can also use the master development snapshots if you'd prefer not to build the swift compiler.

---

<div class="post-metadata">

**Author:** ![fbartho](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/fbartho/32/4220_2.png) [@fbartho](https://forums.swift.org/u/fbartho)\
**Post date:** [October 2, 2019, 11:04pm UTC](https://forums.swift.org/t/building-swiftsyntax-and-missing-internalswiftsyntaxparser/19805/5 "2019-10-02T23:04:17Z")

</div>

I'm trying to use SwiftSyntax on iOS 13 (Simulator) using Xcode 11.0 (11A420a) -- _AppStore_

I added SwiftSyntax using Xcode's GUI, and it indicates the version is 0.50100.0

-- What's the right tag to use for SwiftSyntax to get exactly the version in my current Xcode? I'm getting the following error:  
Could not find or use auto-linked library '\_InternalSwiftSyntaxParser'

To be clear: I'm not trying to Build Swift from Source, and my code compiles fine, it just doesn't link!

---

<div class="post-metadata">

**Author:** ![SDGGiesbrecht](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sdggiesbrecht/32/4768_2.png) [@SDGGiesbrecht](https://forums.swift.org/u/SDGGiesbrecht)\
**Post date:** [October 2, 2019, 11:31pm UTC](https://forums.swift.org/t/building-swiftsyntax-and-missing-internalswiftsyntaxparser/19805/6 "2019-10-02T23:31:37Z")

</div>

You can find more info on rigging it for macOS in the following thread, but iOS may involve additional hurdles (if it works at all...)

> [@SwiftSyntax with Swift 5.1](https://forums.swift.org/t/swiftsyntax-with-swift-5-1/29051):
>
> Is a semantic version of the SwiftSyntax package for Swift 5.1 coming soon? @akyrtzi While I wait, I have been toying with a fork in an attempt to get a head start on updating client code, but I have been running into trouble. I couldn’t find a swift-5.1-RELEASE tag, so I checked out swift-5.1-branch. Then I de‐GYB‐ified the package. In that state, it builds fine, and the tests pass in the package manager or with the result of generate-xcodeproj. However, if I open the package directly in Xcode…
