All Projects → ole → Nsbundle Obcodesigninginfo

ole / Nsbundle Obcodesigninginfo

Check an app bundle's code signing and sandboxing state to NSBundle.

NSBundle+OBCodeSigningInfo

A category on NSBundle that adds method to check an app bundle's code signing and sandboxing state.

Written by Ole Begemann, February 2012.

For more info, see the corresponding blog post: Checking Code Signing and Sandboxing Status in Code.

WARNING

Please do not use this code in your apps. It was just a quick experiment and is neither tested nor secure.

Usage

  1. Add the files NSBundle+OBCodeSigningInfo.h and NSBundle+OBCodeSigningInfo.m to your Xcode project.

  2. #import "NSBundle+OBCodeSigningInfo.h"

  3. For a given NSBundle, call one or more of these methods to get information about its code signing state:

     - (BOOL)ob_comesFromAppStore;
     - (BOOL)ob_isSandboxed;
     - (OBCodeSignState)ob_codeSignState;
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].