Hello every body, Is there any official guide to support protobuf c++ in iOS?
I want to build a static library of protobuf in iOS, and load it in xcode project. my Mac OS is 10.15.6, xcode is 12.4 And I face issue as below: Case1: I followed the official guide https://github.com/protocolbuffers/protobuf/blob/master/src/README.md but failed in "make check", the issue is -bash: /usr/local/bin/protoc: Bad CPU type in executable Case2: Follow the guide of https://developers.google.com/cardboard/develop/ios/protobuf and build .a static library success, but there are many issues when load it in xcode project. Undefined symbols for architecture arm64e: "google::protobuf::Message::GetTypeName() const", referenced from: vtable for securegcm::Ukey2Message in ukey.pb.o vtable for securegcm::Ukey2Alert in ukey.pb.o vtable for securegcm::Ukey2ClientInit_CipherCommitment in ukey.pb.o ... "google::protobuf::Message::DiscardUnknownFields()", referenced from: But when I remove the library from the xcode project, the same issue still exist. as I check with lipo, the architecture is correct. Case3: I use the Cmake to make a xcode project(Cmake + official source code), and then change the project setting, from macOS to iOS, it work well and generate the static library successfully. but when load it in xcode, the issue is the same as Case 2. Can anyone told me how to fix the issue? Or if anyone can share a correct guide for me to solve it? Thank you very much:) -- 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 protobuf+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/15a32c38-6e31-4d02-b4f4-7bce516605acn%40googlegroups.com.