Returns a Boolean value that indicates whether a given bundle is loaded, attempting to load it if necessary.
SDKs
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Declaration
Boolean CFBundleLoadExecutableAndReturnError(CFBundle Ref bundle, CFError Ref *error);
Parameters
bundle
The bundle to examine.
error
Upon return, if an error occurs contains a CFError that describes the problem. Ownership follows the The Create Rule.
Return Value
If bundle
is already loaded, returns true
. If bundle
is not already loaded, attempts to load bundle
; if that attempt succeeds returns true
, otherwise returns false
.