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

Can't hook specific functions #28

Open
eni9889 opened this issue May 7, 2016 · 1 comment
Open

Can't hook specific functions #28

eni9889 opened this issue May 7, 2016 · 1 comment

Comments

@eni9889
Copy link

eni9889 commented May 7, 2016

Attempting to hook AudioServicesPlaySystemSound on iOS 9.3 and don't seem to be able to. Anyone else run into this issue?

@grp
Copy link
Contributor

grp commented May 7, 2016

fishhook can only work for a subset of functions and function calls, since it depends on layers of indirection that aren't always applied. Without more details, it's hard to know if that's what's happening in your case, but here's a few places to start looking:

What code is calling that function that you're trying to hook? If it's system code, it might not go through the tables that fishhook patches, or even call the function directly.

Is fishhook able to find the function? Try putting some breakpoints or logging in the fishhook code and make sure it finds the function as expected.

@grp grp changed the title Can't hook AudioServicesPlaySystemSound Can't hook specific functions Aug 31, 2016
@jobsyu jobsyu mentioned this issue Jun 18, 2020
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