0

I am getting error in CMPedometer, with i am install my app in iPhone device, i have iPhone 4s and iPhone 6s both have same issue.

Here with attached screenshot of issue

enter image description here

Project Link : https://github.com/versluis/Pedometer

in both device have iOS 9 grater OS.

Loic Mouchard
  • 1,121
  • 7
  • 22
Bhavesh Dhaduk
  • 1,888
  • 15
  • 30

2 Answers2

1

Once try by adding CoreMotion.Framework in your project from Linked Frameworks and Libraries under general or Build phases tab under targets of project settings!

And make sure that you are adding NSMotionUsageDescription in your info.plist file!

Ketan Parmar
  • 27,092
  • 9
  • 50
  • 75
  • Setting the `NSMotionUsageDescription` is mandatory for +iOS10. If you don't app would crash! – mfaani Jul 18 '17 at 16:17
1

I got the issue, after 4 hours of hack....

Getting issue in my XCode SDK - CoreMotion.framework was corrupted. (In my last 9 years of experience this is the first case of XCode corrupted)

Corrupted CoreMotion.framework Screen Shot.

enter image description here

Repair CoreMotion.framework Screen Shot. (Copied from other system that framework and replace here)

enter image description here

Bhavesh Dhaduk
  • 1,888
  • 15
  • 30