Returns a bundle’s information dictionary.


func CFBundleGetInfoDictionary(_ bundle: CFBundle!) -> CFDictionary!



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.


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

func CFBundleCopyBundleURL(CFBundle!) -> CFURL!

Returns the location of a bundle.

func CFBundleGetDevelopmentRegion(CFBundle!) -> CFString!

Returns the bundle’s development region from the bundle’s information property list.

func CFBundleGetIdentifier(CFBundle!) -> CFString!

Returns the bundle identifier from a bundle’s information property list.

func CFBundleGetLocalInfoDictionary(CFBundle!) -> CFDictionary!

Returns a bundle’s localized information dictionary.

func CFBundleGetValueForInfoDictionaryKey(CFBundle!, CFString!) -> CFTypeRef!

Returns a value (localized if possible) from a bundle’s information dictionary.

func CFBundleCopyInfoDictionaryForURL(CFURL!) -> CFDictionary!

Returns the information dictionary for a given URL location.

func CFBundleGetPackageInfoInDirectory(CFURL!, UnsafeMutablePointer<UInt32>!, UnsafeMutablePointer<UInt32>!) -> Bool

Returns a bundle’s package type and creator without having to create a CFBundle object.

func CFBundleCopyExecutableArchitectures(CFBundle!) -> CFArray!

Returns an array of CFNumbers representing the architectures a given bundle provides.

func CFBundleCopyExecutableArchitecturesForURL(CFURL!) -> CFArray!

Returns an array of CFNumbers representing the architectures a given URL provides.

func CFBundleGetVersionNumber(CFBundle!) -> UInt32

Returns a bundle’s version number.