get IMEI on iPhone with CoreTelephony?
问题 I have tried the accepted answer of How to get IMEI on iPhone? but I got an empty string. I saw somebody suggested to use CoreTelephony framework, but I am not sure how to use it to obtain the IMEI. Any suggestion on how to use this private API? 回答1: NOTE: this does not work anymore! Haven't tested on any new iOS. You have to add CoreTelephony.h to your project. Make sure the header has int * _CTServerConnectionCopyMobileEquipmentInfo ( struct CTResult * Status, struct __CTServerConnection *