Sure you can use Core Motion:
@import CoreMotion;
Here's an example implementation of accelerometer readings - declare an instance variable:
CMMotionManager *_myMotionManager;
Initial setup as you initialise your scene:
_myMotionManager = [[CMMotionManager alloc] init];
_myMotionManager.accelerometerUpdateInterval = 0.2; // tweak the sensitivity of intervals
[_myMotionManager startAccelerometerUpdates];
This is how to gather accelerometer data on the Y axis (there are three: X, Y, Z) - put this in the update method of your Sprite Kit game:
float yAcceleration = _myMotionManager.accelerometerData.acceleration.y;
NSLog(@"y axis acceleration data: %f", yAcceleration);
Make sure you [_myMotionManager stopAccelerometerUpdates];
when they're no longer needed.
If you need gyroscope data, the approach is very similar - here, you'd start gyro updates and use _myMotionManager.gyroData.rotationRate.y
instead.