Here is what you can try, even that won’t stop them from using it.
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/LocalIAPStore.dylib"]) {
NSLog(@"Local IAP Store detected");
}
This is not very effective, but it may prevent someone from doing this. You might want to make your own server (one-way application) for the application to make it impossible to use LocalIAPStore, etc.
source
share