I’m using the protobuf in objective c. But I’m getting the below exception.
Please check the error and help me how to resolve this.
Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[PeoplePairBuilder serializedSize]: unrecognized selector sent to
instance 0x7fea2961a2f0'
MuxRequestBuilder *muxRequestBuilder = [MuxRequest builder];
PeoplePairBuilder *eyePairRequestBuilder = [PeopleBuilder builder];
ImageBuilder *imageRequestBuilder = [Image builder];
[muxRequestBuilder setUid:@"12234"];
[muxRequestBuilder setSessionId:@"WERWE234234234"];
for (int i = 0; i < 5; i++) {
UIImage *image = [UIImage imageNamed:@"Mushroom2.PNG"];
NSData *imageData = UIImagePNGRepresentation(image);
[muxRequestBuilder
addEyes:[[peoplePairRequestBuilder
setProfileImage:[imageRequestBuilder setData:imageData]]
setSequence:1]];
}
MuxRequest *muxRequest = [muxRequestBuilder build];
NSError *error;
NSData *jsonJobData = [muxRequest data]; //Here I’m getting error
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.