johnno1962 / InjectionApp

Issue Tracking Repo for Injection as an App
MIT License
111 stars 7 forks source link

Inject Source does not work #9

Open onmyway133 opened 7 years ago

onmyway133 commented 7 years ago

Steps

// From here to end of file added by Injection Plugin //

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

#define INJECTION_ENABLED
#import "/tmp/injectionforxcode/BundleInjection.h"
#endif
2017-01-13 10:46:44.027 Test Injection[22173:214386] +[BundleInjection load] 10.3.15.96 (see project's main.(m|mm)
2017-01-13 10:46:44.030 Test Injection[22173:214424] Injection attempting connection to: 127.0.0.1:31452
2017-01-13 10:46:44.034 Test Injection[22173:214424] Connected to "Injection" plugin, ready to load x86_64 code.
override func viewDidLoad() {
    super.viewDidLoad()

    view.backgroundColor = UIColor.blue // try changing to red, green, blue colors, ...
  }

It should show something like

Compiling ...
2 injections performed so far

Please help if I miss something. Thanks

johnno1962 commented 7 years ago

Did you reload the view controller so the new code is executed?

onmyway133 commented 7 years ago

@johnno1962 as you know in the Xcode template master detail app, I have the detail controller that I can push and pop. So when I change its code, I click back and click on a cell to go to it again

johnno1962 commented 7 years ago

It should say more in the console so something is not working. If you want to TeamView send your co-ordinated to injectionapp at johnholdsworth.com