Injection support both device and simulator

Icon

Thanks johnno1962
Injection: https://github.com/johnno1962/InjectionIII

Support iOS13+ device.

  1. 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
  1. Copy InjectionSetup.sh to your project.
  2. Build Phase -> Run Script exe setup shell.

GitHub

https://github.com/ldwardx/InjectionIIISupportDevice