Replacment UDID with OpenUDID is this good way?

ios, objective-c, udid

Solution

Seems like the easiest solution is to just generate your own UUID:

NSString *UUID() {
    CFUUIDRef cfuuid = CFUUIDCreate(NULL); 
    NSString *uuid =  (__bridge_transfer NSString *)CFUUIDCreateString(NULL, cfuuid); 
    CFRelease(cfuuid);
    return uuid;
}

If you need to keep this across uninstall/install cycles, put it in the keychain as described here: https://stackoverflow.com/a/11597291/382374

Best thing, this is how Apple suggests you do it.

Good luck!

Problem

So apple is rejecting apps which uses UDID. There are lots of posts on this, but i can't find where is written is it's good to use OpenUDID. So maybe someone know if apple will approve this ? If OpenUDID has all features as UDID ? Maybe someone is using this approach and could explain more ?

Original source

Related problems