I have been working on an app, and wrote a lot of category methods on classes like NSNumber.
I now want to turn this into a Unity plugin. The code is now failing in this context, with -[__NSCFNumber int32Value]: unrecognized selector
.
I have tried the -ObjC
flag (OTHER_LDFLAGS) but that doesn’t seem to matter (I can’t add it when building the game engine).
I’ve looked at Objective-C categories in static library but don’t see anything that addresses this from the context of code in a plugin calling category methods it defines. Am I missing something?