johnno1962 / injectionforxcode

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

It can not work #291

Closed lanht closed 3 years ago

lanht commented 4 years ago

xxx.m is not readable. This could be because the file is in a secure area of the file system or because the case of the letters in the file name does not match that in the Xcode project. The file system injection uses is case sensitive

zenangst commented 4 years ago

@lanht hey mate, mind sharing some more details about your setup?

lanht commented 4 years ago

[[NSBundle bundleWithPath:@"/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle"] load];

zenangst commented 4 years ago

What kind of class are you trying to inject? Does it have a injected method implemented so that InjectionIII knows that it is valid to inject, and if so… what does that method look like?

In addition to that, whee do you have your files stored? The application is sandboxed a thus it is restricted from reading files in certain locations.