10

I tried to run sample ARKit in Xcode 9 iPhone 7 plus simulator. But it failed. Is there any possibilities to check ARKit projects in iOS simulators.

Dávid Pásztor
  • 51,403
  • 9
  • 85
  • 116
Karthikeyan Bose
  • 1,244
  • 3
  • 17
  • 26

3 Answers3

23

ARKit uses the camera as well as gyroscope and accelerometer to map the world and get the device's relative position, so no you won't be able to use it in the simulator.

Guig
  • 9,891
  • 7
  • 64
  • 126
  • 1
    I wonder if MacBooks still have motion sensors now that they don't have hard disks anymore? (They used to be there for parking the drive heads when free fall is detected.) Regardless, the camera/sensor suite in a Mac probably isn't enough to do what ARKit needs, nor worth Apple's time to calibrate... – rickster Jul 12 '17 at 04:37
  • Even if the macbook had motion sensors, they are not accessible in the simulator right (https://developer.apple.com/library/content/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator/TestingontheiOSSimulator.html) ? – Guig Jul 12 '17 at 22:01
  • Right. That was sort of an offhand comment about whether/how *Apple* could make the simulator pretend it has an accelerometer. – rickster Jul 12 '17 at 23:32
  • It'd be very cool if the did that for the camera with the webcam but hey.. – Guig Jul 13 '17 at 09:05
4

I suppose it is not possible because the basic requirement to run ARKit is camera access.

toofani
  • 1,650
  • 13
  • 16
2

Not yet ... BUT ... Google might show the way.

You can run Android ARCore in the Emulator. I run it on my Mac. https://developers.google.com/ar/develop/java/emulator

ARCore and ARKit follow the same basic IMU-SLAM architecture. So I believe it is technically possible and I hope Apple follows suit.

biocodes
  • 29
  • 2