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.
- Add the files
NSBundle+OBCodeSigningInfo.mto your Xcode project.
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;