It has just come to light that the UIDevice uniqueIdentifier property is deprecated in iOS 5 and unavailable in iOS 7 and above. No alternative method or pr
For Swift 3.0 please use below code.
let deviceIdentifier: String = (UIDevice.current.identifierForVendor?.uuidString)! NSLog("output is : %@", deviceIdentifier)