Code Attributes

Specify these keys from the attribute dictionary when you create a static code instance.

Overview

Use these keys in the attribute dictionary when calling the SecStaticCodeCreateWithPathAndAttributes(_:_:_:_:) function.

Topics

Constants

let kSecCodeAttributeArchitecture: CFString

A key whose value is a string that indicates an architecture, such as i386 or x86_64.

let kSecCodeAttributeSubarchitecture: CFString

A key whose value is a string indicating a specific processor type, such as i686 or core2.

let kSecCodeAttributeBundleVersion: CFString

A key whose value indicates the bundle version.

let kSecCodeAttributeUniversalFileOffset: CFString

A key whose value indicates the offset of a Mach-O specific slice of a universal Mach-O file.

See Also

Static Code

class SecStaticCode

A static code object representing signed code on disk.

func SecStaticCodeCreateWithPath(CFURL, SecCSFlags, UnsafeMutablePointer<SecStaticCode?>) -> OSStatus

Creates a static code object representing the code at a specified file system path.

func SecStaticCodeCreateWithPathAndAttributes(CFURL, SecCSFlags, CFDictionary, UnsafeMutablePointer<SecStaticCode?>) -> OSStatus

Creates a static code object representing the code at a specified file system path using an attributes dictionary.

func SecStaticCodeGetTypeID() -> CFTypeID

Returns the unique identifier of the opaque type to which a static code object belongs.