tags:

views:

41

answers:

3

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

Thanks

A: 

Not likely. Why? Anti-piracy?

Noah Witherspoon
Actually, I would like to know which device signed with debug which device signed with production certificate for push notification.
fyasar
A: 

No, impossible.

Antwan van Houdt
+3  A: 

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.

Codo
Codo, thank your for answer.Sounds like good, I will try your advice asap.
fyasar
Codo,As far as I see, It won't be easy. Could you share me if you find something about this.
fyasar