johnno1962 / injectionforxcode

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

symbol not found #160

Open iosanimations opened 7 years ago

iosanimations commented 7 years ago

when i run injectiongforxcode in my project, "symbol not found" error happens. here is the detail message. Symbol not found: _OBJC_CLASS_$_BLAccountRestartRequest Referenced from: /Users/huangzeyu/Downloads/teacher/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle2.bundle/InjectionBundle Expected in: flat namespace and Bundle has failed to load. If this is due to symbols not found, this may be due to symbols being hidden from dynamic libraries.

what should i do?

johnno1962 commented 7 years ago

This is nroamlly to do with “hidden” visibility. Is this a class from a third party supplier? If so you won’t be able to inject classes which refer to it.