---
title: init()
framework: xctest
role: symbol
role_heading: Initializer
path: xctest/xctsourcecodecontext/init()
---

# init()

Initializes a new instance with a call stack from the executing thread and no location.

## Declaration

```swift
convenience init()
```

## Discussion

Discussion The system derives the call stack from NSThread.callStackReturnAddresses.

## See Also

### Initializers

- [init(callStack:location:)](xctest/xctsourcecodecontext/init(callstack:location:).md)
- [init(callStackAddresses:location:)](xctest/xctsourcecodecontext/init(callstackaddresses:location:).md)
- [init(location:)](xctest/xctsourcecodecontext/init(location:).md)
