Returns the bundle identifier from a bundle’s information property list.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Declaration
CFString Ref CFBundleGetIdentifier(CFBundle Ref bundle);
Parameters
bundle
The bundle to examine.
Return Value
A CFString object containing the bundle’s identifier, or NULL
if none was specified in the information property list. Ownership follows the The Get Rule.