File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,34 @@ Replace `<#Specify Release tag#>` by the version of SwiftSyntax that you want to
40
40
Then, import ` SwiftSyntax ` in your Swift code.
41
41
42
42
43
+ ### Declare SwiftPM dependency with Xcode 11 beta releases
44
+
45
+ Add this entry to the ` Package.swift ` manifest of your project:
46
+
47
+ ``` swift
48
+ // swift-tools-version:4.2
49
+ import PackageDescription
50
+
51
+ let package = Package (
52
+ name : " MyTool" ,
53
+ dependencies : [
54
+ .package (url : " https://github.com/apple/swift-syntax.git" , .revision (" xcode11-beta1" )),
55
+ ],
56
+ targets : [
57
+ .target (name : " MyTool" , dependencies : [" SwiftSyntax" ]),
58
+ ]
59
+ )
60
+ ```
61
+
62
+ | Xcode Beta Version | SwiftSyntax Revision |
63
+ | :-------------------:| :-------------------------:|
64
+ | Xcode 11 beta 1 | xcode-11-beta-1 |
65
+
66
+
67
+ Different from building SwiftSyntax from source, declaring SwiftSyntax as a SwiftPM dependency doesn't require
68
+ the Swift compiler source because we always push gyb-generated files to a tag.
69
+
70
+
43
71
### Declare SwiftPM dependency with nightly build
44
72
45
73
1 . Download and install the latest Trunk Development (master) [ toolchain] ( https://swift.org/download/#snapshots ) .
You can’t perform that action at this time.
0 commit comments