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

Undefined symbol: _rebind_symbols in new commit 'aadc161ac3b80db07a9908851839a17ba63a9eb1' #88

Open
HawkEleven opened this issue Oct 21, 2021 · 1 comment

Comments

@HawkEleven
Copy link

HawkEleven commented Oct 21, 2021

I pod install fishhook from github, but an error was reported at building:
Undefined symbols for architecture arm64:
"_rebind_symbols", referenced from:
_main in main.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@HawkEleven
Copy link
Author

I found out why is it not compiling successfully.
At the head of rebind_symbols() function there is a macro definition of FISHHOOK_VISIBILITY.
The FISHHOOK_VISIBILITY depends on the FISHHOOK_EXPORT macro definition.
But the FISHHOOK_EXPORT macro definition is not defined.
Thus the state of the rebind_symbols() function is hidden.
You can comment out FISHHOOK_VISIBILITY and it will compile successfully.

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

1 participant