简体   繁体   中英

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.

通过.mobileprovision文件结构和阅读 - 应用程序二进制文件仍然应该被签名,即使在应用程序中剥离了embedded.mobileprovision。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM