I'm develop application for jailbroken iOS devices. I use https://github.com/erica/uidevice-extension/blob/master/UIDevice-IOKitExtensions.m to get IMEI, but on iPhone 5 this solution does not work(return empty string). Is there any way to get IMEI on iPhone 5(iOS 6.1.2)?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- How can I add media attachments to my push notific
There are several ways to get IMEI on newer devices
1) Private ManagedConfiguration.framework
2) CoreTelephony.framework
3) liblockdown.dylib
I had some problems with
MCCTIMEI
- returned empty IMEI after device start-up. Now I'm using CoreTelephony solution, never had a problem with it.UPDATE
On iOS 7 these APIs are protected by
com.apple.coretelephony.Identity.get
entitlement. To access IMEI (IMSI, phone number and other info) you need to sign your with that entitlement with boolean value set to true.You can use it:
Download following two files from GitHub
Add these files to your project.
And use it as
It is tested in iPhone 4 and iPhone 5
It have some difficult get the IMEI number programatically. However, if you're looking for a way to identify a particular phone, you can use the UDID (Unique Device Identifier) to do so.
and also try this for IMEI
******Update Oct 2014******
The UUID is an essentially unique identifier for your phone's hardware. It's not guaranteed to be unique due to no collaboration between manufacturers but, given the number of combinations, it is a reasonably reliable identifier of hardware for a broad range of applications.