How to link the library with "-force_load" in Xcode?
I faced the same issue, but finally i fixed this by below mentioned steps:-
Steps
- Go to the "other linker flags" inside your project's build settings and then
- Add
-force_load $(PROJECT_DIR)/yourframewokname.framework/yourframeworkname
Note** The framework which requires to add -ObjC flag inside the other linker flag in that case it conflicts with other libraries so in this case you need to force load the library which requires -ObjC.
Use above mentioned steps it works.