Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to debug the client code in the InjectionBundle target. #173

Closed
ldwardx opened this issue Sep 11, 2019 · 2 comments
Closed

How to debug the client code in the InjectionBundle target. #173

ldwardx opened this issue Sep 11, 2019 · 2 comments

Comments

@ldwardx
Copy link

ldwardx commented Sep 11, 2019

As the title, I want to debug the client code to locate some compilation problems.

@johnno1962
Copy link
Owner

Hi, You would need to build InjectionIII from this repo and install it in /applications. It’s not too difficult a build but at the moment you would need Xcode 10.1 or a symlink from XApplications/Xcode101.app to your Xcode.app.

@ldwardx
Copy link
Author

ldwardx commented Sep 16, 2019

I have debugged the client code with the following steps:

  1. clone the repo
  2. target->InjectionIII->Build Phase->Run Script, change compile option from release to debug
  3. Build InjectionIII target
  4. Load the bundle under the tmp folder to your application delegate's applicationDidFinishLaunching:
[[NSBundle bundleWithPath:@"/private/tmp/Injection/Debug-iphonesimulator/iOSInjection.bundle"] load];
  1. Drag the InjectionIII project into your own project

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants