<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTSourceCodeSymbolInfo/init(imageName:symbolName:location:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTSourceCodeSymbolInfo(im)initWithImageName:symbolName:location:"
  },
  "title" : "init(imageName:symbolName:location:)"
}
-->

# init(imageName:symbolName:location:)

Initializes an instance with a binary image name, source code location, and symbol name.

```
init(imageName: String, symbolName: String, location: XCTSourceCodeLocation?)
```

## Parameters

`imageName`

A string that represents the name of the binary image containing the symbolicated code.

`symbolName`

A string that represents a human-readable symbol in source code.

`location`

A representation of a location in source code.

---

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)