iOS : CMPedometer / Framework Error when install in device, it's run in simulator

156 views Asked by At

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.

2

There are 2 answers

0
Bhavesh Dhaduk On BEST ANSWER

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

1
Ketan Parmar On

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!