I am facing this issue while submitting the app to the iTunes Connect as
I have tried this links, which were not helpful for me.
Kindly review your thoughts. Thanks!
I am facing this issue while submitting the app to the iTunes Connect as
I have tried this links, which were not helpful for me.
Kindly review your thoughts. Thanks!
According to Apple guidelines you should use advertisingIdentifier. Problem that in iOS 5 it's not working. Feel free to use this code:
- (NSString *) advertisingIdentifier
{
if (!NSClassFromString(@"ASIdentifierManager")) {
SEL selector = NSSelectorFromString(@"uniqueIdentifier");
if ([[UIDevice currentDevice] respondsToSelector:selector]) {
return [[UIDevice currentDevice] performSelector:selector];
}
//or get macaddress here http://iosdevelopertips.com/device/determine-mac-address.html
}
return [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];
}
UDID is deprecated, and it's use is no longer allowed, you must use UUID.
It has drawbacks and benefits compared with UDID.
- (NSString *)uuidString {
// Returns a UUID
CFUUIDRef uuid = CFUUIDCreate(kCFAllocatorDefault);
NSString *uuidStr = (__bridge_transfer NSString *)CFUUIDCreateString(kCFAllocatorDefault, uuid);
return uuidStr;
}