Search code examples
sandboxmetalentitlementsios11arkit

Xcode9's Augmented Reality App template sandbox error


Apple introduced its ARKit at WWDC 17 and they also added a new project template to Xcode 9 called "Augmented Reality App" which is basically supposed to be the demo app during WWDC keynote or something like that.

However, the original template itself returns a critical error during runtime, which is the following:

libMobileGestalt MobileGestaltSupport.m:153: pid 701 ({Your app's name}) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled

What I tried so far:

  1. I tried all 3 different template projects: SpriteKit, SceneKit and Metal. The error stays.
  2. I created entitlements file and set "App sandbox" to true. No luck.
  3. Googled the error and saw that this error is actually older (and arguably less popular) than ARKit. Sadly, nobody has found a solution yet.

Lastly, I do not think that could be relevant but I tried to run it on my iPhone 6. Has anyone managed to run AR app template? If so, how? Or anyone has any bit of information on libMobileGestalt?


Solution

  • According to Apple documentation, only devices powered by A9 and higher can use ARKit.

    • ARKit runs on the Apple A9 and A10 processors
    • On iOS devices with an A9 processor or later, the ARWorldTrackingSessionConfiguration subclass provides high-precision motion tracking and enables features to help you place virtual content in relation to real-world surfaces.
    • On other devices supported by ARKit, the ARSessionConfiguration base class provides basic motion tracking that permits slightly less immersive AR experiences.

    The iPhone 6s and 6s plus have A9 chips, so those and all devices after that can run ARKit. Found it here.