We're currently spawning the clang command here. If the PATH is modified (mine was export PATH="/opt/homebrew/opt/llvm/bin:$PATH", clang will actually point to a different version of clang which does not include libclang_rt.ios.a or libclang_rt.iossim.a.
What do you think about changing Command::new("clang") to Command::new("/usr/bin/clang") so it always use the clang we're expecting?
We're currently spawning the
clang
command here. If the PATH is modified (mine wasexport PATH="/opt/homebrew/opt/llvm/bin:$PATH"
,clang
will actually point to a different version of clang which does not includelibclang_rt.ios.a
orlibclang_rt.iossim.a
.What do you think about changing
Command::new("clang")
toCommand::new("/usr/bin/clang")
so it always use the clang we're expecting?