how to compile on macos:
brew install gnu-sed make ldid-procursus
)gmake -j$(sysctl -n hw.ncpu)
compiling on ios/ipados:
sudo apt install build-essential git make unzip ldid odcctools llvm bash sed
make -j$(sysctl -n hw.ncpu)
compiling on linux/other unix:
more or less the same as compiling on ios, but notably you need to make sure your toolchain includes the compiler-rt builtins for ios, otherwise you will get an error related to ___isPlatformVersionAtLeast.
you can get the builtins from xcode and copy them onto your toolchains's compiler-rt builtin path
compiler-rt builtin path in Xcode.app:
Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/${APPLE_CLANG_VERSION}/lib
usual distro compiler-rt builtin path
/usr/lib/clang/${LLVM_MAJOR_V}/lib
or /usr/lib/llvm-${LLVM_MAJOR_V}/lib/clang/${LLVM_VERSION}
useful links:
after compiling:
palera1n -r /path/to/ramdisk.dmg -o /path/to/binpack.dmg