You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hyangah
changed the title
x/mobile/bind: syntax error in generated ObjC code when using "id" as variable name in method arguments
x/mobile/bind: Avoid using objective-c reserved keywords as ids. (e.g. id)
Oct 16, 2015
Just hit this -- definitely non-trivial to figure out what the actual issue is. It'd be very helpful for gomobile to give you a warning if you use reserved words as parameter names.
With gomobile version golang/mobile@82d11f2, go1.5.1 darwin/amd64, gomobile bind fails for -target ios with the following test package:
Android target builds successfully.
iOS target build fails:
If you change method signature to this one, target builds successfully:
Maybe it's because of "id" is reserved word in ObjC.
The text was updated successfully, but these errors were encountered: