6

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

Thanks

fyasar
  • 3,996
  • 2
  • 42
  • 55

2 Answers2

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.

Community
  • 1
  • 1
Codo
  • 75,595
  • 17
  • 168
  • 206
  • Codo, thank your for answer. Sounds like good, I will try your advice asap. – fyasar Aug 23 '10 at 06: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 '10 at 06: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 08 '12 at 01:33
  • Yes, the file is missing in apps from the AppStore. It has always been like this. – Codo Feb 08 '12 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.

Kaolin Fire
  • 2,521
  • 28
  • 43