What could be causing this error? I am using Xcode version 8.
/Users/package/workspace/apps-72dfa722-8/cordova/platforms/ios/dcc-mobile-sample/Plugins/cordova.plugins.diagnostic/Diagnostic.m:826:25: error: no known class method for selector 'isPedometerEventTrackingAvailable' return [CMPedometer isPedometerEventTrackingAvailable]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/package/workspace/apps-72dfa722-8/cordova/platforms/ios/dcc-mobile-sample/Plugins/cordova.plugins.diagnostic/Diagnostic.m:826:12: warning: incompatible pointer to integer conversion returning 'id' from a function with result type 'BOOL' (aka 'signed char') [-Wint-conversion] return [CMPedometer isPedometerEventTrackingAvailable]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated.