Credit %95 of the code is from yabai (https://github.com/koekeishiya/yabai/blob/master/src/osax/loader.m). Requirements Either amfi_get_out_of_my_way=1 or -arm64e_preview_abi=1 boot args Usage dylinject <path> <pid>