johnno1962 / injectionforxcode

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

EXC_BAD_ACCESS when injecting #164

Closed timothycosta closed 7 years ago

timothycosta commented 7 years ago

I'm having trouble with crashing during injection sometimes. I haven't been able to figure out what is triggering this. Sometimes quitting and restarting Xcode fixes the issue, sometimes not. This is in Xcode 8, so I don't know if it's worth looking at yet or not.

BundleInjection.h line 650 - EXC_BAD_ACCESS if ( ![bundle load] )

There are no errors in the console:

Compiling /Users/timothycosta/Desktop/lingq4.0/iLingQ/iLingQ/Views/LessonView/Popups/BluePopup.m
        0.22 real         0.16 user         0.04 sys
... First time learning of project, one second ...

However, "first time learning of project" is not correct.

johnno1962 commented 7 years ago

Wait until Xcode 8 comes out (next week?) and I’ll release new code supporting Swift3. There can be problems if you are using -injected methods.

timothycosta commented 7 years ago

I don't think this is related to swift 3 or injected methods. I'm not using either. I only upgraded my project to use 2.3 and I'm not working in swift. I just have some libraries that use it.

If you have something ready now, would you mind sending it to my user name at gmail.com? And if you think this might be fixed by whatever you've got coming up, feel free to close this.

johnno1962 commented 7 years ago

OK, I’ve sent it through. let me know if the problems persist.