Groups
Groups
Sign in
Groups
Groups
Protocol Buffers
Conversations
About
Send feedback
Help
(iOS) Crash in GPBDescriptor on initing a message
75 views
Skip to first unread message
Andre
unread,
Feb 16, 2021, 1:22:05 PM
2/16/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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)
Stacktrace
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 PM
2/16/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Protocol Buffers
Looks like I solved this by adding the `-fno-objc-arc` flag to the `.m` files that were having the issue:
https://stackoverflow.com/questions/10277576/google-protocol-buffers-on-ios/18111371#18111371
Reply all
Reply to author
Forward
0 new messages