CFBundleCopyExecutableArchitecturesForURL(_:)
Returns an array of CFNumbers representing the architectures a given URL provides.
Declaration
func CFBundleCopyExecutableArchitecturesForURL(_ url: CFURL!) -> CFArray!Parameters
- url:
The URL to examine.
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
For a directory URL, this is equivalent to calling CFBundleCopyExecutableArchitectures(_:) on the corresponding bundle.
See Also
Getting Bundle Properties
CFBundleCopyBundleURL(_:)CFBundleGetDevelopmentRegion(_:)CFBundleGetIdentifier(_:)CFBundleGetInfoDictionary(_:)CFBundleGetLocalInfoDictionary(_:)CFBundleGetValueForInfoDictionaryKey(_:_:)CFBundleCopyInfoDictionaryInDirectory(_:)CFBundleCopyInfoDictionaryForURL(_:)CFBundleGetPackageInfo(_:_:_:)CFBundleGetPackageInfoInDirectory(_:_:_:)CFBundleCopyExecutableArchitectures(_:)CFBundleGetVersionNumber(_:)