Thanks so much for the speedy and detailed reply! I was using 2.7 so have given building from source a go (3fed4d2
). Unfortunately I'm getting a build error on the M1 which I can't find an example of on the discussion group or the GitHub issues:
➜ j2objc git:(master) make all_dist WARNINGS=-Wno-unsequenced
Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 arm64
Xcode 12.4 Build version 12D4e
Apple clang version 12.0.0 (clang-118.104.22.168)
Thread model: posix
J2OBJC_ARCHS=iphone64 simulator64 macosx64
/opt/homebrew/bin/protoc --plugin=protoc-gen-j2objc=../../dist/j2objc_protoc_plugin --proto_path=/opt/homebrew/include --j2objc_out=/Users/fraser/source/j2objc/protobuf/runtime/build_result/objc /opt/homebrew/include/google/protobuf/descriptor.proto
error: invalid argument '--std=c17' not allowed with 'Objective-C++'
make: *** [/Users/fraser/source/j2objc/protobuf/runtime/build_result/objs-iphone64/com/google/protobuf/CodedInputStream.o] Error 1
make: *** [protobuf_runtime_dist] Error 2
(hopefully that's enough context).
Note that I wasn't able to install prot...@3.11.1 through homebrew, as specified here
, due to cask not found, again I think related to being on an M1. I plumped for what homebrew gave me, which was 13.4.0. I'm willing to believe this as a cause of the issue (the error occurs when compiling protobuf code), but thought I'd check here anyway.