Skip to content

doc: add instruction to build SwiftSyntax with Xcode 11 beta releases #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,34 @@ Replace `<#Specify Release tag#>` by the version of SwiftSyntax that you want to
Then, import `SwiftSyntax` in your Swift code.


### Declare SwiftPM dependency with Xcode 11 beta releases

Add this entry to the `Package.swift` manifest of your project:

```swift
// swift-tools-version:4.2
import PackageDescription

let package = Package(
name: "MyTool",
dependencies: [
.package(url: "https://github.com/apple/swift-syntax.git", .revision("xcode11-beta1")),
],
targets: [
.target(name: "MyTool", dependencies: ["SwiftSyntax"]),
]
)
```

| Xcode Beta Version | SwiftSyntax Revision |
|:-------------------:|:-------------------------:|
| Xcode 11 beta 1 | xcode-11-beta-1 |


Different from building SwiftSyntax from source, declaring SwiftSyntax as a SwiftPM dependency doesn't require
the Swift compiler source because we always push gyb-generated files to a tag.


### Declare SwiftPM dependency with nightly build

1. Download and install the latest Trunk Development (master) [toolchain](https://swift.org/download/#snapshots).
Expand Down