---
title: "CFBundleGetPackageInfoInDirectory(_:_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbundlegetpackageinfoindirectory(_:_:_:)"
---

# CFBundleGetPackageInfoInDirectory(_:_:_:)

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

## Declaration

```swift
func CFBundleGetPackageInfoInDirectory(_ url: CFURL!, _ packageType: UnsafeMutablePointer<UInt32>!, _ packageCreator: UnsafeMutablePointer<UInt32>!) -> Bool
```

## Parameters

- `url`: The location of a bundle.
- `packageType`: On return, the four-letter type code for the bundle. This is APPL for applications, FMWK for frameworks, and BNDL for generic bundles. Or a more specific type code for generic bundles.
- `packageCreator`: On return, the four-letter “creator” code for the bundle.

## Return Value

Return Value true if the package type and creator were found, otherwise false.

## See Also

### Getting Bundle Properties

- [CFBundleCopyBundleURL(_:)](corefoundation/cfbundlecopybundleurl(_:).md)
- [CFBundleGetDevelopmentRegion(_:)](corefoundation/cfbundlegetdevelopmentregion(_:).md)
- [CFBundleGetIdentifier(_:)](corefoundation/cfbundlegetidentifier(_:).md)
- [CFBundleGetInfoDictionary(_:)](corefoundation/cfbundlegetinfodictionary(_:).md)
- [CFBundleGetLocalInfoDictionary(_:)](corefoundation/cfbundlegetlocalinfodictionary(_:).md)
- [CFBundleGetValueForInfoDictionaryKey(_:_:)](corefoundation/cfbundlegetvalueforinfodictionarykey(_:_:).md)
- [CFBundleCopyInfoDictionaryInDirectory(_:)](corefoundation/cfbundlecopyinfodictionaryindirectory(_:).md)
- [CFBundleCopyInfoDictionaryForURL(_:)](corefoundation/cfbundlecopyinfodictionaryforurl(_:).md)
- [CFBundleGetPackageInfo(_:_:_:)](corefoundation/cfbundlegetpackageinfo(_:_:_:).md)
- [CFBundleCopyExecutableArchitectures(_:)](corefoundation/cfbundlecopyexecutablearchitectures(_:).md)
- [CFBundleCopyExecutableArchitecturesForURL(_:)](corefoundation/cfbundlecopyexecutablearchitecturesforurl(_:).md)
- [CFBundleGetVersionNumber(_:)](corefoundation/cfbundlegetversionnumber(_:).md)
