How to programmatically get a phone number with iOS11 for a corporate application

Yes, I know that he cannot get a phone number using the public APIs.

I want to know which last situation is related to how to get a phone number using private APIs for enterprise application with iOS11. All past questions that I could find were years old, could not find anything recent.

I tried this:

extern NSString* CTSettingCopyMyPhoneNumber(); +(NSString *) phoneNumber { NSString *phone = CTSettingCopyMyPhoneNumber(); return phone; } 

But I can not run this, because I could not add the rights com.apple.coretelephony.Identity.get without receiving a signature error, stating that the executable was signed with invalid permissions.

Is it possible that with iOS 11 you can program a phone number using non-public APIs for a corporate application on an invulnerable device?

+5
source share

Source: https://habr.com/ru/post/1275350/


All Articles