johnno1962 / injectionforxcode

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

Getting "Connected to "Injection" plugin, ready to load x86_64 code." on Appcode #212

Open zColdWater opened 7 years ago

zColdWater commented 7 years ago

Hi guys, I found a question on my swift project. when i press [ctrl] + [=/+] that Appcode alert "Application not running/connected". I don't know where the problem. My Xcode version is 8.1.

Log:

 +[BundleInjection load] 10.110.35.160 (see project's main.(m|mm)
 Injection attempting connection to: 127.0.0.1:31442
 Connected to "Injection" plugin, ready to load x86_64 code.

My project's main.m:

#ifdef DEBUG
static char _inMainFilePath[] = __FILE__;
static const char *_inIPAddresses[] = {"10.110.35.160","127.0.0.1", 0};

#define INJECTION_ENABLED
#import "/tmp/injectionforxcode/BundleInjection.h"
#endif
johnno1962 commented 7 years ago

Sounds liek you’re using the old version of the AppCode plugin. A new version is available here: https://github.com/johnno1962/InjectionApp