Building a multidevice workout app
Mirror a workout from a watchOS app to its companion iOS app, and perform bidirectional communication between them.
Overview
Configure the sample code project
This sample code project needs to run on physical devices. Before you run it with Xcode:
Set the developer team for all targets to let Xcode automatically manage the provisioning profile. For more information, see Assign a project to a team.
In the Info pane of the
MirroringWorkoutsSample Watch Apptarget, change the value of theWKCompanionAppBundleIdentifierkey to the bundle ID of the iOS app.