Bhavesh Dhaduk
Bhavesh Dhaduk

Reputation: 1906

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

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.

Upvotes: 0

Views: 140

Answers (2)

Bhavesh Dhaduk
Bhavesh Dhaduk

Reputation: 1906

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

Upvotes: 1

Ketan Parmar
Ketan Parmar

Reputation: 27438

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!

Upvotes: 1

Related Questions