johnno1962 / injectionforxcode

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

Need some helps #107

Closed Rick630 closed 8 years ago

Rick630 commented 8 years ago

Hello, I try the Plugin with my project, and press ctrl + shift + =, then the simulator performs like this capture, why that? Is there any step wrong?

screen shot 2016-03-19 at 11 52 22 pm
Rick630 commented 8 years ago

Here's some logs

2016-03-20 00:17:04.835 xxx[53897:2482800] Injection attempting connection to: 127.0.0.1:31442 2016-03-20 00:17:04.877 xxx[53897:2482800] Connected to "Injection" plugin, ready to load x86_64 code. Compiling /Users/rick/Desktop/Dev/qqsd/Code/xxx/Controller/Tips/TipsViewController.m 1.74 real 0.26 user 1.14 sys objc[53897]: Class TipsViewController is implemented in both /Users/rick/Library/Developer/CoreSimulator/Devices/B4A24407-7B17-43BF-B8F1-2FC11540505C/data/Containers/Bundle/Application/9B9A61BF-82A2-466D-A542-FC771878F227/xxx.app/xxx and /Users/rick/Desktop/Dev/qqsd/Code/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle2.bundle/InjectionBundle. One of the two will be used. Which one is undefined. 5 injections performed so far. 2016-03-20 00:17:07.126 xxx[53897:2482207] Ignore any warning, Swizzled TipsViewController 0x11992a388 -> 0x105f92018 2016-03-20 00:17:11.028 xxx[53897:2482207] I've been injected: <TipsViewController: 0x7fd02183f400>

johnno1962 commented 8 years ago

You should use ctrl-=. you have unwittingly invoked the unreliable “inject and reset” which is ctrl-shift-=

Rick630 commented 8 years ago

Awesome! It works, thanks