我正在尝试使用 libffi ( https://github.com/libffi/libffi ) 在 iOS 运行时创建函数。但是,我不确定如何将其导入 Xcode 或如何开始使用该库。libffi-iOS 项目最近一次更新是在大约 3 年前。
请有人帮助提供教程或步骤或使用 libffi 等的简单 Xcode 项目。
当我尝试编译库时,出现以下错误:
"_ffi_call_win64", referenced from:
_ffi_call_int in ffiw64.o
"_ffi_closure_win64", referenced from:
_ffi_prep_closure_loc_efi64 in ffiw64.o
(maybe you meant: _ffi_closure_win64_inner)
"_ffi_go_closure_win64", referenced from:
_ffi_prep_go_closure_efi64 in ffiw64.o
"ffi_closure_win64_inner", referenced from:
ffi_closure_win64 in win64.o
(maybe you meant: _ffi_closure_win64_inner)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libffi.la] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2