I am trying to access Mac OS X UUID in cocoa programming using this code.
NSString *uuid = [[NSUUID UUID] UUIDString];
here uuid returns a unique id every time whenever I am accessing uuid, it keeps changing even I am not reinstalling app .I need to know how to access UUID in Mac OS X which will be same whether I am reinstalling app or recompiling, it should remain same.
In Ios i am able to achieve the same by below code.
NSString *iosuuid = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
Here iosuuid returns uuid which will remain same even when I am reinstalling and recompiling my app.
Don't suggest me to use Mac address, which I don't want to access for some purpose in my app.