CFBundleGetInfoDictionary(_:)
Returns a bundle’s information dictionary.
Declaration
func CFBundleGetInfoDictionary(_ bundle: CFBundle!) -> CFDictionary!Parameters
- bundle:
The bundle to examine.
Return Value
A CFDictionary object containing the data stored in the bundle’s information property list (the Info.plist file). This is a global information dictionary. CFBundle may add extra keys to this dictionary for its own use. Ownership follows the The Get Rule.
Discussion
You should typically use CFBundleGetValueForInfoDictionaryKey(_:_:) rather than retrieving values directly from the info dictionary because the function will return localized values if any are available. Use CFBundleGetInfoDictionary only if you know that the key you are interested in will not be localized.
To retrieve an info dictionary without creating a CFBundle object, see CFBundleCopyInfoDictionaryInDirectory(_:) and CFBundleCopyInfoDictionaryForURL(_:).
See Also
Getting Bundle Properties
CFBundleCopyBundleURL(_:)CFBundleGetDevelopmentRegion(_:)CFBundleGetIdentifier(_:)CFBundleGetLocalInfoDictionary(_:)CFBundleGetValueForInfoDictionaryKey(_:_:)CFBundleCopyInfoDictionaryInDirectory(_:)CFBundleCopyInfoDictionaryForURL(_:)CFBundleGetPackageInfo(_:_:_:)CFBundleGetPackageInfoInDirectory(_:_:_:)CFBundleCopyExecutableArchitectures(_:)CFBundleCopyExecutableArchitecturesForURL(_:)CFBundleGetVersionNumber(_:)