Skip to content
Adds method to check an app bundle's code signing and sandboxing state to NSBundle.
Find file
Pull request Compare This branch is 1 commit behind ole:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
NSBundle+OBCodeSigningInfo.h
NSBundle+OBCodeSigningInfo.m
README.markdown

README.markdown

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.

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;
    
Something went wrong with that request. Please try again.