6

Is it possible to get code signing identity information at runtime ?

Thanks

2 Answers 2

3

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.

4
  • Codo, thank your for answer. Sounds like good, I will try your advice asap.
    – fyasar
    Aug 23, 2010 at 6:33
  • Codo, As far as I see, It won't be easy. Could you share me if you find something about this.
    – fyasar
    Aug 23, 2010 at 6:39
  • From what Ive seen, embedded.mobileprovision isnt included in IPAs from the AppStore. Or maybe it was and this has changed in iOS 4 or 5.
    – jin
    Feb 8, 2012 at 1:33
  • Yes, the file is missing in apps from the AppStore. It has always been like this.
    – Codo
    Feb 8, 2012 at 10:29
0

via .mobileprovision Files Structure and Reading — the application binary should still be signed, even with the embedded.mobileprovision stripped in the apps tore.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.