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:
Open the sample with the latest version of Xcode.
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.
In the Info pane of the
HKWorkoutZoneSample Watch Apptarget, change the value of theWKCompanionAppBundleIdentifierkey to the bundle ID of the iOS app.