1 2 3 4 5 6 7 8 9 10 11 12 13
#include <stdlib.h> #include <string.h> #include <mach-o/dyld-interposing.h> int myFoo() { return 4; } int interposableFoo(); DYLD_INTERPOSE(myFoo, interposableFoo)