Contents

CFBundlePreflightExecutable(_:_:)

Returns a Boolean value that indicates whether a given bundle is loaded or appears to be loadable.

Declaration

func CFBundlePreflightExecutable(_ bundle: CFBundle!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Parameters

  • bundle:

    The bundle to examine.

  • error:

    Upon return, if an error occurs contains a CFError that describes the problem. Ownership follows the 20001148 103029.

Return Value

true if bundle is loaded or upon inspection appears to be loadable, otherwise false.

Discussion

If this function returns true, this does not mean that the bundle is definitively loadable, since it may fail to load due to link errors or other problems not readily detectable.

See Also

Loading and Unloading a Bundle