<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Bundle/path(forAuxiliaryExecutable:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBundle(im)pathForAuxiliaryExecutable:"
  },
  "title" : "path(forAuxiliaryExecutable:)"
}
-->

# path(forAuxiliaryExecutable:)

Returns the full pathname of the executable with the specified name in the receiver’s bundle.

```
func path(forAuxiliaryExecutable executableName: String) -> String?
```

## Parameters

`executableName`

The name of an executable file.

## Return Value

The full pathname of the executable `executableName` in the receiver’s bundle.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)