Open HawkEleven opened 2 years ago
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.
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)