Injection support both device and simulator
Thanks johnno1962
Injection: https://github.com/johnno1962/InjectionIII
Support iOS13+ device.
applicationDidFinishLaunching:
add below code
#if DEBUG
#if TARGET_OS_SIMULATOR
NSString *injectionBundlePath = @"/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle";
#else
NSString *injectionBundlePath = [[NSBundle mainBundle] pathForResource:@"iOSInjection_Device" ofType:@"bundle"];
#endif
NSBundle *injectionBundle = [NSBundle bundleWithPath:injectionBundlePath];
if (injectionBundle) {
[injectionBundle load];
} else {
NSLog(@"Not Found Injection Bundle");
}
#endif
- Copy
InjectionSetup.sh
to your project. Build Phase -> Run Script
exe setup shell.