Skip to content

Latest commit

 

History

History
141 lines (130 loc) · 16.1 KB

CoreMotion.md

File metadata and controls

141 lines (130 loc) · 16.1 KB

CoreMotion

Symbols: 72.7% of Apple's iOS API (282 of 388, exact) · Rows: 6: 1 ✅ 2 🧩 3 ❌ · iOS: 4.0+

Area: Location, personal data & sensors · Apple: CoreMotion · Issues: area:location

How isim implements it

  • Adapted: a device held upright at rest, with Simulator-style "unavailable" answers.
  • Objective-C / C interface: headers in isim/sdk-src/Frameworks/CoreMotion over the overlay's classes: the motion manager and its data, the pedometer, motion activity, the altimeter and headphone motion.

API

API / feature Status iOS Notes
Core Motion (accelerometer, gyroscope, pedometer) ✅ ≤17 adapted: a device held upright at rest (gravity (0,-1,0), no rotation) for accelerometer/gyro/magnetometer/device-motion push and pull updates; ISIM_MOTION=unavailable reports no sensors like the Simulator; pedometer, activity, altimeter unavailable (Simulator); shake stays a UIKit motion event. Tested (HelloSensors, iOS 17–27)
Objective-C interface: CMPedometer (CMPedometerData, CMPedometerEvent), CMMotionActivityManager (CMMotionActivity), CMAltimeter (CMAltitudeData), CMHeadphoneMotionManager, CMAuthorizationStatus, CMError 🧩 ≤17 stub, like the Simulator (and the Swift API): unavailable; queries fail with CMErrorMotionActivityNotAvailable / CMErrorNotAvailable. Tested (HelloSensorsObjC: test_sensors_objc)
Sensors the Simulator lacks: CMHeadphoneMotionManager (connection status, CMHeadphoneMotionManagerDelegate), CMBatchedSensorManager, CMSensorRecorder (CMSensorDataList, CMRecordedAccelerometerData), absolute altitude (CMAltimeter.startAbsoluteAltitudeUpdates, CMAbsoluteAltitudeData), CMWaterSubmersionManager (CMWaterSubmersionEvent, CMWaterSubmersionMeasurement, CMWaterTemperature, the delegate) 🧩 ≤17 stub, like the Simulator: no headphones connect (connection status updates start, the delegate hears nothing); batched sensors are unsupported (the handlers get CMError.notAvailable, the accelerometerUpdates() / deviceMotionUpdates() sequences throw it); the recorder records nothing (accelerometerData(from:to:) is nil); absolute altitude updates fail with notAvailable; the water submersion delegate gets manager(_:errorOccurred:) with notAvailable. Objective-C too. Tested (HelloSensors: test_sensors, HelloSensorsObjC: test_sensors_objc)
Types not yet in isim (iOS 17 and earlier) ❌ ≤17 not implemented, found by the 2026-10 sweep: CMAmbientPressureData, CMDyskineticSymptomResult, CMHighFrequencyHeartRateData, CMOdometerData, CMRecordedPressureData, CMTremorResult (6 types; with their members under "Not yet in isim")
Types not yet in isim (iOS 18) ❌ 18.0 not implemented, found by the 2026-10 sweep: CMHeadphoneActivityManager (1 type; with its members under "Not yet in isim")
Types not yet in isim (iOS 27) ❌ 27.0 not implemented, found by the 2026-10 sweep: CMBodyIdentifiable, CMRecordedDeviceMotion (2 types; with their members under "Not yet in isim")

Not yet in isim

106 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.

List