Quote:
Originally Posted by _sjc_
Not 100% sure about this, but try adding -ObjC to the "other linker flags" entry in the build configuration. I _think_ it tells the linker to check for obj-c in linked files, but like I said, I'm not 100%... but, hey, it's worth a shot, right?
|
Hi, thanks for your help. I already had -ObjC added to Other Linker Flags. I fixed the issue though.
For anybody having the same problem, you have to add -all_load to linker flags as well. So add:
-ObjC
-all_load
This will make sure the extensions also get compiled into the code. These two have to be added to BOTH the static library and the project that uses the static library. VERY IMPORTANT they are added to both projects. Hope this helps somebody with the same problem.