iOS HealthKit to get the step data. AnchorDate = today 0h0m0s between last 30 day.
Please add a certificate that contains the ability of using healthkit.
go to target - capabilities - HealthKit.
be sure the tab is opened, and none warning is here.
remember to add Info.plist with: 1:Privacy - Motion Usage Description 2:Privacy - Health Update Usage Description 3:Privacy - Health Share Usage Description
then Command + R
Permission is here by. Mit