Function

CFBundleCopyAuxiliaryExecutableURL

Returns the location of a bundle’s auxiliary executable code.

Declaration

CFURLRef CFBundleCopyAuxiliaryExecutableURL(CFBundleRef bundle, CFStringRef executableName);

Parameters

bundle

The bundle to examine.

executableName

The name of bundle’s auxiliary executable code.

Return Value

The URL location of the specified bundle’s auxiliary executable code, or NULL if it could not be found. Ownership follows the The Create Rule.

Discussion

This function can be used to find executables other than your main executable. This is useful, for instance, for applications that have some command line tool that is packaged with and used by the application. The tool can be packaged in the various platform executable directories in the bundle and can be located with this function. This allows an application to ship versions of the tool for each platform as it does for the main application executable.

See Also

Finding Locations in a Bundle

CFBundleCopyBuiltInPlugInsURL

Returns the location of a bundle’s built in plug-in.

CFBundleCopyExecutableURL

Returns the location of a bundle’s main executable code.

CFBundleCopyPrivateFrameworksURL

Returns the location of a bundle’s private Frameworks directory.

CFBundleCopyResourcesDirectoryURL

Returns the location of a bundle’s Resources directory.

CFBundleCopySharedFrameworksURL

Returns the location of a bundle’s shared frameworks directory.

CFBundleCopySharedSupportURL

Returns the location of a bundle’s shared support files directory.

CFBundleCopySupportFilesDirectoryURL

Returns the location of the bundle’s support files directory.