I'm not actually using the accelerometer in my app, but this warning is the only one I get during the build process. I'd like to correct it or eliminate it. This warning directs me to the CCLayer.m cocos2d original files. There a 4 warnings about the UIAccelerometer deprecations.
(LINES 91 & 93 is where the warnings start) ! UIAccelerometer is deprecated in iOS 5.0 - UIAccelerometer has been replaced by the CoreMotion framework
85:-(void) setIsAccelerometerEnabled:(BOOL)enabled
86:{
87: if( enabled != isAccelerometerEnabled_ ) {
88: isAccelerometerEnabled_ = enabled;
89: if( isRunning_ ) {
90: if( enabled )
91: [[UIAccelerometer sharedAccelerometer] setDelegate:self];
92: else
93: [[UIAccelerometer sharedAccelerometer] setDelegate:nil];
94: }
95: }
96:}
When I dig deeper into the warnings it brings me deeper into the UIAccelerometer.h UIKit
Have others had this problem? How to deal with it? Should I just ignore it? Any suggestions would be greatly appreciated. Thanks, Justin