CFBundleGetPackageInfoInDirectory(_:_:_:)
Returns a bundle’s package type and creator without having to create a CFBundle object.
Declaration
func CFBundleGetPackageInfoInDirectory(_ url: CFURL!, _ packageType: UnsafeMutablePointer<UInt32>!, _ packageCreator: UnsafeMutablePointer<UInt32>!) -> BoolParameters
- url:
The location of a bundle.
- packageType:
On return, the four-letter type code for the bundle. This is
APPLfor applications,FMWKfor frameworks, andBNDLfor generic bundles. Or a more specific type code for generic bundles. - packageCreator:
On return, the four-letter “creator” code for the bundle.
Return Value
true if the package type and creator were found, otherwise false.
See Also
Getting Bundle Properties
CFBundleCopyBundleURL(_:)CFBundleGetDevelopmentRegion(_:)CFBundleGetIdentifier(_:)CFBundleGetInfoDictionary(_:)CFBundleGetLocalInfoDictionary(_:)CFBundleGetValueForInfoDictionaryKey(_:_:)CFBundleCopyInfoDictionaryInDirectory(_:)CFBundleCopyInfoDictionaryForURL(_:)CFBundleGetPackageInfo(_:_:_:)CFBundleCopyExecutableArchitectures(_:)CFBundleCopyExecutableArchitecturesForURL(_:)CFBundleGetVersionNumber(_:)