\nTeja
\n","author":{"@type":"Person","name":"Tejaswi Yerukalapudi"},"upvoteCount":0,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"This seems to be working fine in the official release of Xcode downloaded from the App store.
\n","author":{"@type":"Person","name":"Tejaswi Yerukalapudi"},"upvoteCount":0}}}Reputation: 9157
I've recently updated my Xcode to Xcode5 GM. I've noticed that this deleted my iOS6 SDK, so I've manually copied it over into Developer/SDKs. Xcode recognizes this SDK just fine. However, when I try to compile my application with this, it throws an compiler error when I attempt to retrieve the UDID of a device.
Does anyone know why this is happening ? Shouldn't the UDID API still be available in the iOS6 SDK?
Thanks,
Teja
Upvotes: 0
Views: 153
Reputation: 9157
This seems to be working fine in the official release of Xcode downloaded from the App store.
Upvotes: 0
Reputation: 12123
The UDID
has been deprecated. It was deprecated in `iOS 5, Official Apple Documentation
uniqueIdentifier
An alphanumeric string unique to each device based on various hardware details. (read-only)
(Deprecated in iOS 5.0. Use the identifierForVendor property of this class or the
advertisingIdentifier property of the ASIdentifierManager class instead, as appropriate, or use
the UUID method of the NSUUID class to create a UUID and write it to the user defaults database.)
@property(nonatomic, readonly, retain) NSString *uniqueIdentifier
(Above taken from Apple documentation.)
Noted by bengoesboom
even if it was still available your app would be automatically rejected as soon as you submitted to Apple for review. This is probably the reason why it has been completely removed.
Upvotes: 1