Search code examples
iosstatic-librariesobjective-c-category

Category method symbols in static library aren't visible in main executable


We're converting a project to 64 bit and having some trouble with unrecognized selectors at runtime.

It's due to some category functions that are defined in a static library not being visible from the main executable. We have the -ObjC linker flag set and I've even tried using -force_load with the static library path that has these category functions defined but no matter what they're still not found at runtime.


Solution

  • Check with -all_load linker flag.