-
Notifications
You must be signed in to change notification settings - Fork 12
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
Compiler Flags not working when loading into Clang #4
Comments
Hello, Use -Xclang -load -Xclang instead of modifying Xcode with insert_dylib. You might also want to use the environment variables instead of passing through arguments for now, while I diagnose the issue. (and please check the LLVM version that Xcode 11.7 is based on, for Xcode 11.0, it was LLVM 8) |
Hey, thanks for the info. I'll look into which LLVM version Xcode 11.7 uses. |
Hey, i know this is going to sound very stupid but is there documentation/list that contains the environment variables for Hikari? I've managed to get it to load properly using Xclang load but I'm not sure which environment variables I have to pass through. Edit: Nvm I found them. I will leave this issue open however since you mentioned you would look into the arguments. |
@tale Hi, have you successfully loaded Hikari into Apple Clang? |
I loaded it in but not through injecting it into a toolchain, but just loading it. Make sure that the |
@tale Wow, thank you for your reply! I built HikariCore with the following commands.
However, it emits this error when I try to compile something.
Could you come up with any solutions? Edited: I have also tried Xcode11 with HikariCore. It works, but not works on arm64e device as LLVM does not have the support for it yet, obviously. |
@tale I got it working! Thank you for your help. |
Iam trying to get it to work with xcode12 and have same issue. Coud you share your solution ? |
Oh yeah, don't use Anti Class Dump. I had this issue with some of my testers and disabling that pass seemed to fix it for me. |
Can anyone please share their dylibs for Xcode 12? Brew doesn't have llvm 10 branch and hikaricore doesn't compile with llvm 11.. |
Just use LLVM 9? |
I thought I would finalize a message here that would be useful for people seeing this in the future. Issue: Workaround: HikariCore/src/PassScheduler.cpp Line 64 in 8a23913
Compiling:
Remember to always keep the Dynamic Libraries together as they rely on each other. |
Using the steps listed below, I've attempted to build and inject this version of Hikari into an Xcode 11.7 Toolchain.
See the images below for reference: After completing all the steps I've listed, Hikari "works", but I'm unable to pass any of the command line arguments to clang.
I've done the following steps, I'm not sure where I made a mistake:
libLLVMObfuscationHook.dylib
,libLLVMObfuscationDeps.dylib
, andlibsubstitute.dylib
it into an Xcode toolchain from 11.7insert_dylib --inplace @executable_path/libLLVMObfuscationDeps.dylib clang
&insert_dylib --inplace @executable_path/libLLVMObfuscationHook.dylib clang
The text was updated successfully, but these errors were encountered: