Fitness App Source Code
🕑 Added 2023-07-19 21:03:45 +0000 UTC
Here is the source code for the Fitness App that we are building on the channel. The current code is up to episode 4.
Code: https://drive.google.com/drive/folders/1Fw0qYsifqLpLV0yjj_f0KZLeW5a9mCVF?usp=drive_link
Comments
Lucas M
is the source code uptodate and includes the whole project ?
Jason Dubon
The code has to be changed in order to account for that edge case
Jason Dubon
One the simulator it will fail because there is no apple watch data for the simulator to reference
Bram Spuijbroek
Same here, it is using the mock data. In the chart tab I do see my actual step count.
Jason Dubon
Lmk if that helps
Jason Dubon
You need to make sure you have data for the step count and apple watch to get the calorie data
Jason Dubon
Are you using the simulator or actual device?
Lu Tran
Hi Jason, I was able to build and ran fine except it failed fetching todays step and calorie data. Already added Privacy - Health Share Usage Description, Health Records Usage Description, and Health Update Usage Description in the Info.plist file. Any idea?