---
title: "url(forAuxiliaryExecutable:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/bundle/url(forauxiliaryexecutable:)"
---

# url(forAuxiliaryExecutable:)

Returns the file URL of the executable with the specified name in the receiver’s bundle.

## Declaration

```swift
func url(forAuxiliaryExecutable executableName: String) -> URL?
```

## Parameters

- `executableName`: The name of an executable file.

## Return Value

Return Value The file URL of the executable executableName in the receiver’s bundle.

## Discussion

Discussion This method returns the appropriate path for modern application and framework bundles. This method may not return a URL for non-standard bundle formats or for some older bundle formats.

## See Also

### Getting the standard bundle directories

- [resourceURL](foundation/bundle/resourceurl.md)
- [executableURL](foundation/bundle/executableurl.md)
- [privateFrameworksURL](foundation/bundle/privateframeworksurl.md)
- [sharedFrameworksURL](foundation/bundle/sharedframeworksurl.md)
- [builtInPlugInsURL](foundation/bundle/builtinpluginsurl.md)
- [sharedSupportURL](foundation/bundle/sharedsupporturl.md)
- [appStoreReceiptURL](foundation/bundle/appstorereceipturl.md)
- [resourcePath](foundation/bundle/resourcepath.md)
- [executablePath](foundation/bundle/executablepath.md)
- [privateFrameworksPath](foundation/bundle/privateframeworkspath.md)
- [sharedFrameworksPath](foundation/bundle/sharedframeworkspath.md)
- [builtInPlugInsPath](foundation/bundle/builtinpluginspath.md)
- [path(forAuxiliaryExecutable:)](foundation/bundle/path(forauxiliaryexecutable:).md)
- [sharedSupportPath](foundation/bundle/sharedsupportpath.md)
