I am new to Protobuf & I want to decode protobuf(syntax 2 type) in swift. Below I am sharing library that i am using in swift
'SwiftProtobuf'
I have one proto type file and with the help of compiler i have generated one proto.pb.swift file and added…
I have defined a proto with an array(repeated) and redefine it later to a map after some years. How to migrate the jsons written with previous defined proto format to the new redefined format?
PS : I don't want the users to manually change…
I am converting .proto files to swift files using command
protoc --swift_out=. my_proto_file.proto
protoc version being used is libprotoc 3.13.0.
my_proto_file has several import statements like
import "google/protobuf/duration.proto";
import…
I have a SDK called ParentSDK and it have some dependency are swift-protobuf(Static library) and some private frameworkSDKs. Already add a podFile in my ParentSDK. Add all framework installation cocoa pod cmd in my podFile include swiftprotobuf.…
I am using Google Protocol buffer of type proto2 syntax.I have implemented SwiftProtobuf for this.Below is my library.
pod 'SwiftProtobuf'
Now I want to send one empty message request to BLE in Data format. When I convert my request to data it is…
As the title says when I run my app on a iphone5 it crashes saying:
dyld: Library not loaded: @rpath/SwiftProtobuf.framework/SwiftProtobuf
Referenced from:…
We're using Swift Protobuf in a project that generates the message struct code (i.e. DTOs). It doesn't implement Codable and I'm trying to add Codable through an extension so that I can serialize them to disk when used inside a non-protobuf that…
Google's protobuf3 generates structs where an optional of type T is represented as a pair
.xyz: T which returns T's default value if xyz is not available
.hasXyz: Bool which tells whether the xyz is actually set
This then leads to a need to unpack…