johnno1962 / injectionforxcode

Runtime Code Injection for Objective-C & Swift
MIT License
6.55k stars 565 forks source link

Symbol not found for framework. #262

Closed starFelix closed 5 years ago

starFelix commented 5 years ago

I have a subproject which target is a framework in my project. If I inject some codes in it, I will get a "symbol not found" error. I know I can resolve this problem by change the setting of hidden symbol when debuging. But I still want to ask is there anyway can find symbol in runtime, or link the symbols when it is creating a dylib for injecting.

johnno1962 commented 5 years ago

No I’m afraid not. If the symbols are not made available when the project is built they can not be found.

starFelix commented 5 years ago

@johnno1962 Thanks for your answer!