Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Prevent "UIDevice.uniqueIdentifier" from returning real UDID value.
It prevents UIDevice.uniqueIdentifier method from returning real UDID vaue.
It is useful to prevent closed-source libralies to fetch users' UDIDs against
your will.
@interface UIDevice (UDIDkiller)
#import "UDIDkiller.h"
@implementation UIDevice (UDIDkiller)
-(NSString*)uniqueIdentifier {
NSLog(@"CAUTION!!! UIDevice.uniqueIdentifier was called.");
return @"";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment