Returns a Boolean value indicating whether the bundle’s executable code could be loaded successfully.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
On input, a pointer to an error object variable. On output, this variable may contain an error object indicating why the bundle’s executable could not be loaded. If no error would occur, this parameter is left unmodified. You may specify
nilfor this parameter if you are not interested in the error information.
YES if the bundle’s executable code could be loaded successfully or is already loaded; otherwise,
NO if the code could not be loaded.
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
NSExecutable 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