injectionforxcode icon indicating copy to clipboard operation
injectionforxcode copied to clipboard

crash when adding injected function

Open nickkjordan opened this issue 8 years ago • 2 comments

I'm getting a crash during injection, but only when injected exists in the class. I'm working in Swift.

In IvarAccess.h, getting EXC_BAD_ACCESS here

I commented out the else if block, and injection works fine

nickkjordan avatar Mar 30 '16 22:03 nickkjordan

-injected is the least reliable part of injection alas, particularly for Swift. You can tap into when injections occur with “INJECTION_BUNDLE_NOTIFICATION” as an alternative.

johnno1962 avatar Mar 30 '16 22:03 johnno1962

This may be fixed now. Can you try again?

johnno1962 avatar Dec 20 '16 17:12 johnno1962