After extracting the Debian package for this hack, you will see that it has almost the same structure as the IAP cracker. So you can write:
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/LocalIAPStore.dylib"]) { NSLog(@"Local IAP Store detected"); }
By the way, using this method is not entirely effective. I am sure that if many developers use this approach, the creators of these settings will include another hook in a dynamic library that makes detection impossible, for example, you can connect - [NSFileManager fileExistsAtPath:] and check if the path path is dylib and unconditionally return NO in this case.
Thus, you prefer to use your own server for verification if you want to use in-app purchases.
user529758
source share