Contents

preflight()

Returns a Boolean value indicating whether the bundle’s executable code could be loaded successfully.

Declaration

func preflight() throws

Discussion

This method does not actually load the bundle’s executable code. Instead, it performs several checks to see if the code could be loaded and with one exception returns the same errors that would occur during an actual load operation. The one exception is the NSExecutableLinkError error, which requires the actual loading of the code to verify link errors.

For a list of possible load errors, see the discussion for the loadAndReturnError() method.

See Also

Loading Code from a Bundle