As mentioned in rckoenes, you cannot get IMEI. Also, you cannot get an identifier that can refer to a physical device (UDID, MAC address). However, if you need to get a unique identifier that will remain constant whenever the user uses your application, you can use the property [UIDevice identifierForVendor].
Note. You cannot use this identifier for advertising purposes, use the property instead [ASIdentifierManager advertisingIdentifier](as recommended by AdSupport).
source
share