Comments (5)
Or maybe I'm misunderstanding how to distribute my protobuf registry as a framework where the import ProtocolBuffers
line is required.
from protobuf-swift.
For the sake of simplicity, you can create a folder structure:
protobufs/google/protobuf/
Copy swift-descriptor.proto
and descriptor.proto
in this folder.
In this case, you can simply compile the files protoc request_registry.proto --swift_out =" ./ "
Line import ProtocolBuffers
can also disable
using option (.google.protobuf.swift_file_options) .compile_for_framework = false;
from protobuf-swift.
are there examples on the proper way to include protos in your project?
i want to keep the proto definitions in their own repo since its shared with multiple languages. i was then thinking of creating a framework just for the proto definitions and using that in my xcode projects as needed.
i don't think I can do this though because all of the generated proto structs and classes are listed as "internal" so they're not available outside of the framework.
from protobuf-swift.
ah shit, i just realized this is for that: https://github.com/alexeyxo/protobuf-swift#access-control
is there no way to set those preferences from the command line so they don't have to be defined in each file?
from protobuf-swift.
Comand Line Arguments - are the arguments "protoc", the third party plugins hasn't to opportunity them.
from protobuf-swift.
Related Issues (20)
- Error in Xcode10 HOT 1
- Build fails with protobuf 3.6.0 HOT 2
- If a number is 0 this property will missing HOT 1
- XCode 10/swift 4.2 compilation errors HOT 3
- Build error on Xcode beta 5 HOT 2
- convert array ro json
- UnsafeRawPointer(&buffer+bufferPos) Ambiguous use of 'init' HOT 4
- configuare.ac
- new function to `delimitedData`
- Build time error HOT 1
- protobuf test program failed to link
- Message Field extensions
- protobuf2.6,swift 3.0 ,version Number
- Question : Codable
- [Question] Use RawValue enum when formatting to JSON
- protocol buffer build.sh error and show “protobuf test program failed to link” HOT 4
- Install failed
- Why the GeneratedMessageProtocol tip error
- Xcode 12.0 BETA 4 HOT 5
- Xcode12 build failure - Generic parameter 'Element' could not be inferred HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protobuf-swift.