Contents

CFBundleLoadExecutable(_:)

Loads a bundle’s main executable code into memory and dynamically links it into the running application.

Declaration

func CFBundleLoadExecutable(_ bundle: CFBundle!) -> Bool

Parameters

  • bundle:

    The bundle whose main executable you want to load.

Return Value

true if the executable was successfully loaded, otherwise false.

Discussion

You should typically try to avoid using this function, but instead use CFBundleGetFunctionPointerForName(_:_:) and related functions since these make memory management of the bundle easier.

See Also

Loading and Unloading a Bundle