<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKWorkoutSession/init(healthStore:configuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKWorkoutSession(im)initWithHealthStore:configuration:error:"
  },
  "title" : "init(healthStore:configuration:)"
}
-->

# init(healthStore:configuration:)

Returns a newly instantiated workout session with an associated workout builder.

```
init(healthStore: HKHealthStore, configuration workoutConfiguration: HKWorkoutConfiguration) throws
```

## See Also

[`func associatedWorkoutBuilder() -> HKLiveWorkoutBuilder`](/documentation/HealthKit/HKWorkoutSession/associatedWorkoutBuilder())

Returns the live workout builder associated with the workout session.



---

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)