-
Notifications
You must be signed in to change notification settings - Fork 866
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
macOS x86_x64 InlineHook hook C函数无效果! #144
Comments
我这里是没有问题的. |
经测试 intel 芯片的 macOS x86_x64 实体机 InlineHook hook C 函数生效了。 |
ok 好的 我试下 (请问这是什么需求? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
经过几天研究,我是 M1 用户
采用 cmake/ios.toolchain.cmake -DPLATFORM=MAC 生成 x86_x64 静态库.a
`# build macos x86_64
output_dir_name=auto-build-workspace/darwin-macos-x86_64-build
compress_dir_array="$compress_dir_array $output_dir_name"
echo "prepare build ${output_dir_name}"
mkdir -p ${CURRENT_DIR}/${output_dir_name}
cmake -S . -B ${output_dir_name} -DCMAKE_BUILD_TYPE=Release
-DCMAKE_TOOLCHAIN_FILE=cmake/ios.toolchain.cmake
-DPLATFORM=MAC -DARCHS="x86_64" -DCMAKE_SYSTEM_PROCESSOR=x86_64
-DENABLE_BITCODE=0 -DENABLE_ARC=0 -DENABLE_VISIBILITY=1 -DDEPLOYMENT_TARGET=10.1
-DDOBBY_GENERATE_SHARED=OFF -DGenerateDarwinFramework=OFF -DDOBBY_DEBUG=OFF
cmake --build ${output_dir_name} --parallel 4 --target dobby
mkdir -p ${summary_output_dir_name}/darwin/macos_x86_64
cp -r ${output_dir_name}/${darwin_library_name} ${summary_output_dir_name}/darwin/macos_x86_64`
`
测试代码:
static int (*orig_isNGiw32TGSAb)(double a1);
int myisNGiw32TGSAb(double a1){
NSLog(@"[+] hook isNGiw32TGSAb hooked");
return 1;
}
导入工程 macOS x86_x64 hook C函数无效果!
同样代码 macOS amd64 架构有效果
请问大佬 Dobby 是支持 macOS x86_x64 架构?还是代码 bug ?
The text was updated successfully, but these errors were encountered: