I am trying to mod a macOS game using a dylib injected with DYLD_INSERT_LIBRARIES, but I am having some trouble calling a the game's function from the dylib. I can currently redirect one function to another one that belongs to the game, but I can't just call the same function.
I have tried using: [GamePlayer performSelector:@selector(setPositionOfBall:)]; but the game log says: +[GamePlayer setPositionOfBall]: unrecognized selector sent to class . I am really unsure how to overcome this, because I know the selector and class are correct. I did however notice the error starts with + and the function in the decompiler starts with -, if that helps
Any help is appreciated, Connor