Release configuration only: C callback not found for method

Hi! I’ve added analytics.m file to my project, added analytics.a file with force_load, headers to headers search path to xcode configuration and it’s working pretty well with debug configuration, but release just write

FAILURE: C callback not found for method init

What can I do to prevent xcode throwing analytics.m methods out?


Try specifying __attribute__ ((visibility ("default"))) for the exported symbols. This is what JNIEXPORT does for JNI symbols. In debug builds the testability flag may be true, which imports every symbol into the main binary implicitly.

Best Regards,

It works. Thank you!