johnno1962 / injectionforxcode

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

Error with iOS 8.4 and iPhone 4S simulator #196

Closed vbklv closed 7 years ago

vbklv commented 7 years ago

When I try to Inject Source from the Injection app menu on iOS 8.4 running on iPhone 4S simulator, I get this error and injection is not possible:

Injection Error:
(os/kern) invalid argument

screen shot 2017-01-18 at 10 27 49

johnno1962 commented 7 years ago

Sorry, you need to patch the project for 32 bits.

bonyadmitr commented 7 years ago

@johnno1962 Hi! How can I "patch the project for 32 bits"?

Injection Error: Injection only possible for 64 bit targets

I have this error for iPhone 4s and 5. I use latest standalone Injection app, Swift 3, Xcode 8.

P.S. You created great app! Thank you very much!

johnno1962 commented 7 years ago

Use pacthed injection: Menu Item “macOS Project/ Patch App". You’ll need a main.m in your project.

bonyadmitr commented 7 years ago

Thanks!

P.S. I think you can close this issue.