Documentation Archive Developer
Search

MachO Changes for Swift

MachO

Removed dyld_all_image_infos.init(version: UInt32, infoArrayCount: UInt32, infoArray: UnsafePointer<dyld_image_info>, notification: dyld_image_notifier, processDetachedFromSharedRegion: Bool, libSystemInitialized: Bool, dyldImageLoadAddress: UnsafePointer<mach_header>, jitInfo: UnsafeMutablePointer<Void>, dyldVersion: UnsafePointer<Int8>, errorMessage: UnsafePointer<Int8>, terminationFlags: UInt, coreSymbolicationShmPage: UnsafeMutablePointer<Void>, systemOrderFlag: UInt, uuidArrayCount: UInt, uuidArray: UnsafePointer<dyld_uuid_info>, dyldAllImageInfosAddress: UnsafeMutablePointer<dyld_all_image_infos>, initialImageCount: UInt, errorKind: UInt, errorClientOfDylibPath: UnsafePointer<Int8>, errorTargetDylibPath: UnsafePointer<Int8>, errorSymbol: UnsafePointer<Int8>, sharedCacheSlide: UInt, sharedCacheUUID: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8), reserved: (UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt))
Removed DYLD_BOOL.init(_: UInt32)
Removed DYLD_BOOL.value
Removed dyld_image_mode.value
Removed NSLinkEditErrorHandlers.init(undefined: CFunctionPointer<((UnsafePointer<Int8>) -> Void)>, multiple: CFunctionPointer<((NSSymbol, NSModule, NSModule) -> NSModule)>, linkEdit: CFunctionPointer<((NSLinkEditErrors, Int32, UnsafePointer<Int8>, UnsafePointer<Int8>) -> Void)>)
Removed NSLinkEditErrors.value
Removed NSObjectFileImageReturnCode.value
Removed NSOtherErrorNumbers.value
Removed reloc_type_generic.value
Removed tlv_descriptor.init(thunk: CFunctionPointer<((UnsafeMutablePointer<tlv_descriptor>) -> UnsafeMutablePointer<Void>)>, key: UInt, offset: UInt)
Added dyld_all_image_infos.init(version: UInt32, infoArrayCount: UInt32, infoArray: UnsafePointer<dyld_image_info>, notification: dyld_image_notifier!, processDetachedFromSharedRegion: Bool, libSystemInitialized: Bool, dyldImageLoadAddress: UnsafePointer<mach_header>, jitInfo: UnsafeMutablePointer<Void>, dyldVersion: UnsafePointer<Int8>, errorMessage: UnsafePointer<Int8>, terminationFlags: UInt, coreSymbolicationShmPage: UnsafeMutablePointer<Void>, systemOrderFlag: UInt, uuidArrayCount: UInt, uuidArray: UnsafePointer<dyld_uuid_info>, dyldAllImageInfosAddress: UnsafeMutablePointer<dyld_all_image_infos>, initialImageCount: UInt, errorKind: UInt, errorClientOfDylibPath: UnsafePointer<Int8>, errorTargetDylibPath: UnsafePointer<Int8>, errorSymbol: UnsafePointer<Int8>, sharedCacheSlide: UInt, sharedCacheUUID: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8), reserved: (UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt))
Added dyld_image_mode.init(rawValue: UInt32)
Added dyld_image_mode.rawValue
Added NSLinkEditErrorHandlers.init(undefined: ((UnsafePointer<Int8>) -> Void)!, multiple: ((NSSymbol, NSModule, NSModule) -> NSModule)!, linkEdit: ((NSLinkEditErrors, Int32, UnsafePointer<Int8>, UnsafePointer<Int8>) -> Void)!)
Added NSLinkEditErrors.init(rawValue: UInt32)
Added NSLinkEditErrors.rawValue
Added NSObjectFileImageReturnCode.init(rawValue: UInt32)
Added NSObjectFileImageReturnCode.rawValue
Added NSOtherErrorNumbers.init(rawValue: UInt32)
Added NSOtherErrorNumbers.rawValue
Added reloc_type_generic.init(rawValue: UInt32)
Added reloc_type_generic.rawValue
Added tlv_descriptor.init(thunk: ((UnsafeMutablePointer<tlv_descriptor>) -> UnsafeMutablePointer<Void>)!, key: UInt, offset: UInt)
Added LC_VERSION_MIN_WATCHOS
Added MH_APP_EXTENSION_SAFE
Added N_ALT_ENTRY
Added N_AST
Modified dyld_all_image_infos [struct]
Declaration
From
struct dyld_all_image_infos {
    var version: UInt32
    var infoArrayCount: UInt32
    var infoArray: UnsafePointer<dyld_image_info>
    var notification: dyld_image_notifier
    var processDetachedFromSharedRegion: Bool
    var libSystemInitialized: Bool
    var dyldImageLoadAddress: UnsafePointer<mach_header>
    var jitInfo: UnsafeMutablePointer<Void>
    var dyldVersion: UnsafePointer<Int8>
    var errorMessage: UnsafePointer<Int8>
    var terminationFlags: UInt
    var coreSymbolicationShmPage: UnsafeMutablePointer<Void>
    var systemOrderFlag: UInt
    var uuidArrayCount: UInt
    var uuidArray: UnsafePointer<dyld_uuid_info>
    var dyldAllImageInfosAddress: UnsafeMutablePointer<dyld_all_image_infos>
    var initialImageCount: UInt
    var errorKind: UInt
    var errorClientOfDylibPath: UnsafePointer<Int8>
    var errorTargetDylibPath: UnsafePointer<Int8>
    var errorSymbol: UnsafePointer<Int8>
    var sharedCacheSlide: UInt
    var sharedCacheUUID: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)
    var reserved: (UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt)
    init()
    init(version version: UInt32, infoArrayCount infoArrayCount: UInt32, infoArray infoArray: UnsafePointer<dyld_image_info>, notification notification: dyld_image_notifier, processDetachedFromSharedRegion processDetachedFromSharedRegion: Bool, libSystemInitialized libSystemInitialized: Bool, dyldImageLoadAddress dyldImageLoadAddress: UnsafePointer<mach_header>, jitInfo jitInfo: UnsafeMutablePointer<Void>, dyldVersion dyldVersion: UnsafePointer<Int8>, errorMessage errorMessage: UnsafePointer<Int8>, terminationFlags terminationFlags: UInt, coreSymbolicationShmPage coreSymbolicationShmPage: UnsafeMutablePointer<Void>, systemOrderFlag systemOrderFlag: UInt, uuidArrayCount uuidArrayCount: UInt, uuidArray uuidArray: UnsafePointer<dyld_uuid_info>, dyldAllImageInfosAddress dyldAllImageInfosAddress: UnsafeMutablePointer<dyld_all_image_infos>, initialImageCount initialImageCount: UInt, errorKind errorKind: UInt, errorClientOfDylibPath errorClientOfDylibPath: UnsafePointer<Int8>, errorTargetDylibPath errorTargetDylibPath: UnsafePointer<Int8>, errorSymbol errorSymbol: UnsafePointer<Int8>, sharedCacheSlide sharedCacheSlide: UInt, sharedCacheUUID sharedCacheUUID: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8), reserved reserved: (UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt))
}
To
struct dyld_all_image_infos {
    var version: UInt32
    var infoArrayCount: UInt32
    var infoArray: UnsafePointer<dyld_image_info>
    var notification: dyld_image_notifier!
    var processDetachedFromSharedRegion: Bool
    var libSystemInitialized: Bool
    var dyldImageLoadAddress: UnsafePointer<mach_header>
    var jitInfo: UnsafeMutablePointer<Void>
    var dyldVersion: UnsafePointer<Int8>
    var errorMessage: UnsafePointer<Int8>
    var terminationFlags: UInt
    var coreSymbolicationShmPage: UnsafeMutablePointer<Void>
    var systemOrderFlag: UInt
    var uuidArrayCount: UInt
    var uuidArray: UnsafePointer<dyld_uuid_info>
    var dyldAllImageInfosAddress: UnsafeMutablePointer<dyld_all_image_infos>
    var initialImageCount: UInt
    var errorKind: UInt
    var errorClientOfDylibPath: UnsafePointer<Int8>
    var errorTargetDylibPath: UnsafePointer<Int8>
    var errorSymbol: UnsafePointer<Int8>
    var sharedCacheSlide: UInt
    var sharedCacheUUID: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)
    var reserved: (UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt)
    init()
    init(version version: UInt32, infoArrayCount infoArrayCount: UInt32, infoArray infoArray: UnsafePointer<dyld_image_info>, notification notification: dyld_image_notifier!, processDetachedFromSharedRegion processDetachedFromSharedRegion: Bool, libSystemInitialized libSystemInitialized: Bool, dyldImageLoadAddress dyldImageLoadAddress: UnsafePointer<mach_header>, jitInfo jitInfo: UnsafeMutablePointer<Void>, dyldVersion dyldVersion: UnsafePointer<Int8>, errorMessage errorMessage: UnsafePointer<Int8>, terminationFlags terminationFlags: UInt, coreSymbolicationShmPage coreSymbolicationShmPage: UnsafeMutablePointer<Void>, systemOrderFlag systemOrderFlag: UInt, uuidArrayCount uuidArrayCount: UInt, uuidArray uuidArray: UnsafePointer<dyld_uuid_info>, dyldAllImageInfosAddress dyldAllImageInfosAddress: UnsafeMutablePointer<dyld_all_image_infos>, initialImageCount initialImageCount: UInt, errorKind errorKind: UInt, errorClientOfDylibPath errorClientOfDylibPath: UnsafePointer<Int8>, errorTargetDylibPath errorTargetDylibPath: UnsafePointer<Int8>, errorSymbol errorSymbol: UnsafePointer<Int8>, sharedCacheSlide sharedCacheSlide: UInt, sharedCacheUUID sharedCacheUUID: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8), reserved reserved: (UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt, UInt))
}

Modified dyld_all_image_infos.notification
Declaration
From
var notification: dyld_image_notifier
To
var notification: dyld_image_notifier!

Modified DYLD_BOOL [enum]
DeclarationProtocolsIntroductionRaw Value Type
From
struct DYLD_BOOL {
    init(_ value: UInt32)
    var value: UInt32
}
--iOS 8.0--
To
enum DYLD_BOOL : UInt32 {
    case FALSE
    case TRUE
}
Equatable, Hashable, RawRepresentableiOS 9.0UInt32

Modified DYLD_BOOL.FALSE
DeclarationIntroduction
From
var FALSE: DYLD_BOOL { get }
iOS 8.0
To
case FALSE
iOS 9.0

Modified DYLD_BOOL.TRUE
DeclarationIntroduction
From
var TRUE: DYLD_BOOL { get }
iOS 8.0
To
case TRUE
iOS 9.0

Modified dyld_image_mode [struct]
DeclarationProtocols
From
struct dyld_image_mode {
    init(_ value: UInt32)
    var value: UInt32
}
--
To
struct dyld_image_mode : RawRepresentable {
    init(_ rawValue: UInt32)
    init(rawValue rawValue: UInt32)
    var rawValue: UInt32
}
RawRepresentable

Modified NSLinkEditErrorHandlers [struct]
Declaration
From
struct NSLinkEditErrorHandlers {
    var undefined: CFunctionPointer<((UnsafePointer<Int8>) -> Void)>
    var multiple: CFunctionPointer<((NSSymbol, NSModule, NSModule) -> NSModule)>
    var linkEdit: CFunctionPointer<((NSLinkEditErrors, Int32, UnsafePointer<Int8>, UnsafePointer<Int8>) -> Void)>
    init()
    init(undefined undefined: CFunctionPointer<((UnsafePointer<Int8>) -> Void)>, multiple multiple: CFunctionPointer<((NSSymbol, NSModule, NSModule) -> NSModule)>, linkEdit linkEdit: CFunctionPointer<((NSLinkEditErrors, Int32, UnsafePointer<Int8>, UnsafePointer<Int8>) -> Void)>)
}
To
struct NSLinkEditErrorHandlers {
    var undefined: ((UnsafePointer<Int8>) -> Void)!
    var multiple: ((NSSymbol, NSModule, NSModule) -> NSModule)!
    var linkEdit: ((NSLinkEditErrors, Int32, UnsafePointer<Int8>, UnsafePointer<Int8>) -> Void)!
    init()
    init(undefined undefined: ((UnsafePointer<Int8>) -> Void)!, multiple multiple: ((NSSymbol, NSModule, NSModule) -> NSModule)!, linkEdit linkEdit: ((NSLinkEditErrors, Int32, UnsafePointer<Int8>, UnsafePointer<Int8>) -> Void)!)
}

Modified NSLinkEditErrorHandlers.linkEdit
Declaration
From
var linkEdit: CFunctionPointer<((NSLinkEditErrors, Int32, UnsafePointer<Int8>, UnsafePointer<Int8>) -> Void)>
To
var linkEdit: ((NSLinkEditErrors, Int32, UnsafePointer<Int8>, UnsafePointer<Int8>) -> Void)!

Modified NSLinkEditErrorHandlers.multiple
Declaration
From
var multiple: CFunctionPointer<((NSSymbol, NSModule, NSModule) -> NSModule)>
To
var multiple: ((NSSymbol, NSModule, NSModule) -> NSModule)!

Modified NSLinkEditErrorHandlers.undefined
Declaration
From
var undefined: CFunctionPointer<((UnsafePointer<Int8>) -> Void)>
To
var undefined: ((UnsafePointer<Int8>) -> Void)!

Modified NSLinkEditErrors [struct]
DeclarationProtocols
From
struct NSLinkEditErrors {
    init(_ value: UInt32)
    var value: UInt32
}
--
To
struct NSLinkEditErrors : RawRepresentable {
    init(_ rawValue: UInt32)
    init(rawValue rawValue: UInt32)
    var rawValue: UInt32
}
RawRepresentable

Modified NSObjectFileImageReturnCode [struct]
DeclarationProtocols
From
struct NSObjectFileImageReturnCode {
    init(_ value: UInt32)
    var value: UInt32
}
--
To
struct NSObjectFileImageReturnCode : RawRepresentable {
    init(_ rawValue: UInt32)
    init(rawValue rawValue: UInt32)
    var rawValue: UInt32
}
RawRepresentable

Modified NSOtherErrorNumbers [struct]
DeclarationProtocols
From
struct NSOtherErrorNumbers {
    init(_ value: UInt32)
    var value: UInt32
}
--
To
struct NSOtherErrorNumbers : RawRepresentable {
    init(_ rawValue: UInt32)
    init(rawValue rawValue: UInt32)
    var rawValue: UInt32
}
RawRepresentable

Modified reloc_type_generic [struct]
DeclarationProtocols
From
struct reloc_type_generic {
    init(_ value: UInt32)
    var value: UInt32
}
--
To
struct reloc_type_generic : RawRepresentable {
    init(_ rawValue: UInt32)
    init(rawValue rawValue: UInt32)
    var rawValue: UInt32
}
RawRepresentable

Modified tlv_descriptor [struct]
Declaration
From
struct tlv_descriptor {
    var thunk: CFunctionPointer<((UnsafeMutablePointer<tlv_descriptor>) -> UnsafeMutablePointer<Void>)>
    var key: UInt
    var offset: UInt
    init()
    init(thunk thunk: CFunctionPointer<((UnsafeMutablePointer<tlv_descriptor>) -> UnsafeMutablePointer<Void>)>, key key: UInt, offset offset: UInt)
}
To
struct tlv_descriptor {
    var thunk: ((UnsafeMutablePointer<tlv_descriptor>) -> UnsafeMutablePointer<Void>)!
    var key: UInt
    var offset: UInt
    init()
    init(thunk thunk: ((UnsafeMutablePointer<tlv_descriptor>) -> UnsafeMutablePointer<Void>)!, key key: UInt, offset offset: UInt)
}

Modified tlv_descriptor.thunk
Declaration
From
var thunk: CFunctionPointer<((UnsafeMutablePointer<tlv_descriptor>) -> UnsafeMutablePointer<Void>)>
To
var thunk: ((UnsafeMutablePointer<tlv_descriptor>) -> UnsafeMutablePointer<Void>)!

Modified dyld_image_notifier
Declaration
From
typealias dyld_image_notifier = CFunctionPointer<((dyld_image_mode, UInt32, UnsafePointer<dyld_image_info>) -> Void)>
To
typealias dyld_image_notifier = (dyld_image_mode, UInt32, UnsafePointer<dyld_image_info>) -> Void