I detect IAP Cracker like this:
if ([[NSFileManager defaultManager] fileExistsAtPath:@\"/Library/MobileSubstrate/DynamicLibraries/iap.dylib\"]){ NSLog(@\"IAP
Also, you can use dyld (or Objective-C runtime) functions to detect if the library in question is loaded. If so, try unload it.