0

I am facing this issue while submitting the app to the iTunes Connect as

enter image description here

I have tried this links, which were not helpful for me.

Link 1 Link 2 Link 3

Kindly review your thoughts. Thanks!

Community
  • 1
  • 1
Shekhar Gupta
  • 6,056
  • 3
  • 27
  • 49
  • From 1st May update from apple [Deprecated UIDevice Methods](https://developer.apple.com/library/ios/documentation/uikit/reference/UIDevice_Class/DeprecationAppendix/AppendixADeprecatedAPI.html) check into you project that you are use uniqueDeviceIdentifier then please put it's Alternate identifierForVendor – Nitin Gohel Sep 13 '13 at 11:37
  • Check whether you are using uniqueIdentifier method, also if you are using any third party library check whether that also not using these methods. – Midhun MP Sep 13 '13 at 12:08
  • 1
    I had face this problem in past at that time I was using old version of bug sense and that use UDID internally .So plz check any of your api or third party api doesn't use UDID internally. – user1548843 Sep 13 '13 at 12:11
  • @ user1548843: I was using older version of third party API. Thanks! – Shekhar Gupta Sep 13 '13 at 13:00

2 Answers2

2

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];
}
Grzegorz Krukowski
  • 14,128
  • 5
  • 41
  • 61
1

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;
}
  • UDID always returned a unique and consistent ID. UUID whilst unique will return different every time. You need to store in user defaults or whereever and only generate if it's not already there.
Woodstock
  • 20,022
  • 15
  • 71
  • 109