<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTSourceCodeSymbolInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTSourceCodeSymbolInfo"
  },
  "title" : "XCTSourceCodeSymbolInfo"
}
-->

# XCTSourceCodeSymbolInfo

An object that contains symbolication information for a specified frame in a call stack.

```
class XCTSourceCodeSymbolInfo
```

## Topics

### Initializers

[`init(imageName: String, symbolName: String, location: XCTSourceCodeLocation?)`](/documentation/XCTest/XCTSourceCodeSymbolInfo/init(imageName:symbolName:location:))

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

### Symbol Information

[`var imageName: String`](/documentation/XCTest/XCTSourceCodeSymbolInfo/imageName)

The name of the binary image that contains the symbolicated code.

[`var location: XCTSourceCodeLocation?`](/documentation/XCTest/XCTSourceCodeSymbolInfo/location)

A representation of a location in source code where a test issue occurred.

[`var symbolName: String`](/documentation/XCTest/XCTSourceCodeSymbolInfo/symbolName)

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

## Relationships

### Conforms To

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)