You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,20 @@ testing with the following versions:
58
58
- Swift 3.1 (swiftlang-802.0.53 clang-802.0.42)
59
59
- swift-protobuf 0.9.901
60
60
61
+
Also, please note that recent changes to swift-proto cause generated structs
62
+
to have the "internal" access level. To allow them to be used in the
63
+
public interfaces generated by the grpc-swift plugin, please generate
64
+
your proto structs with the following protoc options:
65
+
66
+
protoc <your proto files> \
67
+
--swift_out=. \
68
+
--swift_opt=Visibility=Public \
69
+
--plugin=<path to protoc-gen-swift>`
70
+
71
+
More details on the `Visibility` option are [here](https://github.com/apple/swift-protobuf/blob/master/Documentation/PLUGIN.md#generation-option-visibility---visibility-of-generated-types).
72
+
Due to limitations in `protoc`, the `--plugin` option must be used to
73
+
specify the path to `protoc-gen-swift` whever the `--swift_opt` flag is used.
0 commit comments