Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does HealthKit step count show on xcode simulator

I am building an app and retrieving a users step count from HealthKit

There is no error, and I was curious to see if when you run code on xcode using the simulator the step count will always be 0 by default as locations are defaulted?

like image 531
Iona Ryder Avatar asked Feb 28 '18 13:02

Iona Ryder


1 Answers

That's actually possible. Follow the below step

  1. Go to simulator home and open 'Health' App. after that
  2. Tap on Health Data from the bottom menu.
  3. Tap on Activity Box
  4. Scroll down and find steps and tap on it.
  5. To add custom steps tap on '+' icon on the top right corner.

You can now add dummy steps data for Apple Health Kit. Cheers!

like image 134
Saleh Mahmood Avatar answered Oct 30 '22 12:10

Saleh Mahmood