File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,17 @@ Building the plugin should be simple on any supported Swift platform:
3434```
3535$ git clone https://github.com/apple/swift-protobuf
3636$ cd swift-protobuf
37- $ swift build -c release -Xswiftc -static-stdlib
37+ $ swift build -c release
3838```
3939
4040This will create a binary called ` protoc-gen-swift ` in the
4141` .build/release ` directory. To install, just copy this one executable
4242anywhere in your PATH.
4343
44+ NOTE: The Swift runtime support is now included with macOS. If you are
45+ using old Xcode versions or are on older system versions, you might need
46+ to use also use ` --static-swift-stdlib ` with ` swift build ` .
47+
4448### Converting .proto files into Swift
4549
4650To generate Swift output for your .proto files, you run the ` protoc `
Original file line number Diff line number Diff line change @@ -127,14 +127,19 @@ build the protoc plugin:
127127
128128```
129129$ git checkout tags/[tag_name]
130- $ swift build --static-swift-stdlib - c release
130+ $ swift build -c release
131131```
132132
133133This will create a binary called ` protoc-gen-swift ` in the ` .build/release `
134134directory.
135+
135136To install, just copy this one executable into a directory that is
136137part of your ` PATH ` environment variable.
137138
139+ NOTE: The Swift runtime support is now included with macOS. If you are
140+ using old Xcode versions or are on older system versions, you might need
141+ to use also use ` --static-swift-stdlib ` with ` swift build ` .
142+
138143### Alternatively install via Homebrew
139144
140145If you prefer using [ Homebrew] ( https://brew.sh ) :
You can’t perform that action at this time.
0 commit comments