Questions tagged [swiftprotobuf]

For questions about Apple's Swift Protobuf project.

For questions about Apple's Swift Protobuf project.

9 questions
3
votes
0 answers

Decode Protobuf in binary format using Swift

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…
Kanishka
  • 67
  • 3
2
votes
0 answers

How to make migration for defined proto schema?

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…
Lakshmi C
  • 31
  • 8
2
votes
1 answer

swift protoc conversion fails with error "google.type.LatLng" is not defined

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…
Sandeep Bhandari
  • 19,999
  • 5
  • 45
  • 78
1
vote
1 answer

How to handle swift protobuf(Static library) dependency in xcframework generation

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.…
S Surya
  • 87
  • 1
  • 1
  • 8
1
vote
0 answers

How to convert Empty protocol buffer message into data in swift?

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…
Kanishka
  • 67
  • 3
1
vote
0 answers

SwiftProtobuff.framework missing at run time

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:…
LowRez
  • 125
  • 2
  • 14
0
votes
1 answer

Swift Protobuf Codable Extension

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…
Gary Rudolph
  • 1,062
  • 9
  • 21
0
votes
0 answers

While building for tvOS, no library for this platform was found

I have integrated two third party libraries into the tvOS project. I have no clue why I am getting this error. My Xcode version is 14.0.1.
Akshay_iOS
  • 41
  • 5
0
votes
0 answers

Swift: Any way to turn protobuf3 .xyz and .hasXyz property pair back into optional?

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…
Tomáš Kafka
  • 4,405
  • 6
  • 39
  • 52