In this section, we will take a look at how to compile and run our Health Monitor application. You have the option of choosing to run your application on the watchOS device, or within the simulators for Apple Watch:
To run the app, select the HealthMonitor WatchKit App scheme and choose your preferred device, as shown in the following screenshot:
Next, build and run the application by selecting Product | Run from the Product menu, or alternatively, by pressing Command + R.
When the compilation completes, the Health Monitor app will be displayed. If you haven't previously allowed access to HealthKit, you will receive a dialog popup on both, Apple Watch and the iOS device.
In order to proceed, you will need to allow access to HealthKit so that you can retrieve the allowable characteristics that we specified within our app. You have the ability to turn on and off certain features so that they don't appear within the app. Tapping on the Open "HealthMonitor...