(iOS) Crash in GPBDescriptor on initing a message

75 views
Skip to first unread message

Andre

unread,
Feb 16, 2021, 1:22:05 PM2/16/21
to Protocol Buffers
Hello,

We're unable to instantiate a Message in our iOS app using GPB.

Error

Thread 1: EXC_BAD_ACCESS (code=2, address=0x21dba056d0)

Screen Shot 2021-02-16 at 10.18.33 AM.png


Stacktrace
Screen Shot 2021-02-16 at 10.15.56 AM.png


Note
This started happening after I (think I) fixed https://groups.google.com/g/protobuf/c/m6Cki2isWzQ by adding `descriptor.proto` to my directory of .proto files at generation time.


Any help is appreciated.

Andre

unread,
Feb 16, 2021, 1:54:04 PM2/16/21
to Protocol Buffers
Looks like I solved this by adding the `-fno-objc-arc` flag to the `.m` files that were having the issue:

Reply all
Reply to author
Forward
0 new messages