---
title: "CFBundleCopyExecutableArchitectures(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbundlecopyexecutablearchitectures(_:)"
---

# CFBundleCopyExecutableArchitectures(_:)

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

## Declaration

```swift
func CFBundleCopyExecutableArchitectures(_ bundle: CFBundle!) -> CFArray!
```

## Parameters

- `bundle`: The bundle to examine.

## Return Value

Return Value If the bundle’s executable exists and is a Mach-O file, returns an array of CFNumbers whose values are integers representing the architectures the file provides. Possible values are listed in Architecture Types. If the executable is not a Mach-O file, returns NULL. Ownership follows the The Create Rule.

## 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)
- [CFBundleGetPackageInfoInDirectory(_:_:_:)](corefoundation/cfbundlegetpackageinfoindirectory(_:_:_:).md)
- [CFBundleCopyExecutableArchitecturesForURL(_:)](corefoundation/cfbundlecopyexecutablearchitecturesforurl(_:).md)
- [CFBundleGetVersionNumber(_:)](corefoundation/cfbundlegetversionnumber(_:).md)
