Getting code signing identity on runtime?
Is it possible to get 开发者_开发知识库code signing identity information at runtime ?
Thanks
Yes, you can get a lot of code signing information at run-time from the file embedded.mobileprovision:
[[NSBundle mainBundle] pathForResource:@"embedded.mobileprovision" ofType:nil]
There's a discussion about it in How to determine at run-time if app is for development, app store or ad hoc distribution?
It's not that easy to read the file because it is a DER-encoded ASN.1 file.
via .mobileprovision Files Structure and Reading — the application binary should still be signed, even with the embedded.mobileprovision stripped in the apps tore.
精彩评论