title: How to determine at run-time if app is for development, app store or ad hoc distribution?
body: <p>Is there a way to determine programmatically if the currently running app was built and signed for development only or whether it was built for distribution? And can one determine if was build for app store or ad hoc distribution?</p>
  
  <p>Is it e.g. possibly to access the code signature and get the information from there? Or are there certain files present in one of variants that don't exist in the other ones? Is part of the bundle info? Or can it be derived from the executable file?</p>
  
  <p>Any hints are appreciated.</p>
  
  <hr>
  
  <p>It seems that the embedded.mobileprovision file is in ASN.1 format.</p>