I've tried to generate objc protofiles for each subfolder from root:
protoc */*.proto --objc_out="../result" -I.
Example proto:
syntax = "proto2";
message MyProtoType {
required string myProtoName = 1;
}
And protoc
successfully generates objc files, but .m file contains not correct #import
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: MyFolder/MyProto.proto
...
#import "MyFolder/MyProto.pbobjc.h"
// @@protoc_insertion_point(imports)
...
Somebody can explain how to generate correct import, without running protoc
in each subfolder protoc *.proto --objc_out="../result" -I.
with a script that loops through them?