johnno1962 / injectionforxcode

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

Injection not reflecting in Simulator with no error in Logs #267

Closed vishundayal closed 5 years ago

vishundayal commented 5 years ago

Hi, Please help, I am trying injection in Xcode10 but its not reflecting in simulator.

Details: Xcode: Version 10.0 (10A255) Downloaded InjectionIII from App Store Downloaded GettingStarted.zip ios project from http://johnholdsworth.com/injection.html Using Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/iOSInjection10.bundle")!.load()

What did I do: Change background color from yellow to red

Logs:

Injection connected, watching /Users/vishun/Downloads/GettingStarted/ ** Compiling /Users/vishun/Downloads/GettingStarted/GettingStarted/MasterViewController.swift Loading .dylib - Ignore any duplicate class warning... objc[40448]: Class _TtC14GettingStarted20MasterViewController is implemented in both /Users/vishun/Library/Developer/CoreSimulator/Devices/5B029176-5E19-4F0F-BBC6-1F1BDE0AB229/data/Containers/Bundle/Application/78A8E58F-DF21-4823-A66E-603EAEB93CD5/GettingStarted.app/GettingStarted (0x109bc8de0) and /Users/vishun/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval101.dylib (0x1285f56c8). One of the two will be used. Which one is undefined. Injected 'GettingStarted.MasterViewController' Compiling /Users/vishun/Downloads/GettingStarted/GettingStarted/AppDelegate.swift Loading .dylib - Ignore any duplicate class warning... objc[40448]: Class _TtC14GettingStarted11AppDelegate is implemented in both /Users/vishun/Library/Developer/CoreSimulator/Devices/5B029176-5E19-4F0F-BBC6-1F1BDE0AB229/data/Containers/Bundle/Application/78A8E58F-DF21-4823-A66E-603EAEB93CD5/GettingStarted.app/GettingStarted (0x109bc8ea8) and /Users/vishun/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval102.dylib (0x12860b658). One of the two will be used. Which one is undefined. Injected 'GettingStarted.AppDelegate'

screenshot 2018-10-27 at 6 30 43 pm screenshot 2018-10-27 at 6 30 58 pm
vishundayal commented 5 years ago

Can anyone please help me on this?

zenangst commented 5 years ago

@vishundayal did you manage to solve your issue ?

FKLam commented 5 years ago

I had the same problem. @vishundayal Did you solve?