Contents

Tracking heart rate zones for workouts

Start a workout on iOS or watchOS and track and display heart rate zones.

Overview

Configure the sample code project

To configure the sample code project:

  1. Open the sample with the latest version of Xcode.

  2. Set the developer team for all targets to let Xcode automatically manage the provisioning profile. For more information, see Set the bundle ID and Assign the project to a team.

  3. In the Info pane of the HKWorkoutZoneSample Watch App target, change the value of the WKCompanionAppBundleIdentifier key to the bundle ID of the iOS app.

See Also

Workout zones