Connect it through Apple Health:
  1. Open Health on your iPhone.
  2. Tap your profile picture → Apps under Privacy.
  3. Select The Fitness App.
  4. Tap Turn On All, or choose the specific data you want to share.  
Afterward, workouts and supported metrics from The Fitness App can appear in Apple Health.