---
title: "CFBundleCopyExecutableArchitecturesForURL(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbundlecopyexecutablearchitecturesforurl(_:)"
---

# CFBundleCopyExecutableArchitecturesForURL(_:)

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

## Declaration

```swift
func CFBundleCopyExecutableArchitecturesForURL(_ url: CFURL!) -> CFArray!
```

## Parameters

- `url`: The URL to examine.

## Return Value

Return Value For a directory URL, 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 URL provides. For a plain file URL representing an unbundled executable, returns the architectures it provides if it is a Mach-O file. Possible values are listed in Architecture Types. If there is no bundle executable or if the executable is not a Mach-O file, returns NULL. Ownership follows the The Create Rule.

## Discussion

Discussion For a directory URL, this is equivalent to calling CFBundleCopyExecutableArchitectures(_:) on the corresponding bundle.

## 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)
- [CFBundleCopyExecutableArchitectures(_:)](corefoundation/cfbundlecopyexecutablearchitectures(_:).md)
- [CFBundleGetVersionNumber(_:)](corefoundation/cfbundlegetversionnumber(_:).md)
