# BabylonNative ARKit

**URL:** <https://forum.babylonjs.com/t/babylonnative-arkit/17576>\
**Category:** Questions\
**Created:** [January 18, 2021, 10:15am UTC](https://forum.babylonjs.com/t/babylonnative-arkit/17576 "2021-01-18T10:15:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidebaltieri31](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/davidebaltieri31/32/13747_2.png) [@davidebaltieri31](https://forum.babylonjs.com/u/davidebaltieri31)\
**Post date:** [January 18, 2021, 10:15am UTC](https://forum.babylonjs.com/t/babylonnative-arkit/17576/1 "2021-01-18T10:15:45Z")

</div>

Hi all,  
I’m experimenting with BabylonNative and ARCore/ARkit.  
I’m using the test app in the main repo (“Playground”) and have no problem on Android (and enabling ar in experience.js). However on iOS I get an error when running the app:  
**[MTLDebugRenderCommandEncoder validateFramebufferWithRenderPipelineState:]:1228: failed assertion `For depth attachment, the render pipeline’s pixelFormat (MTLPixelFormatInvalid) does not match the framebuffer’s pixelFormat (MTLPixelFormatDepth32Float\_Stencil8).'**

Any idea how to solve this?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [January 18, 2021, 1:23pm UTC](https://forum.babylonjs.com/t/babylonnative-arkit/17576/2 "2021-01-18T13:23:28Z")

</div>

Ohhhh sounds like a mission for @bghgary our native mastermind. He ll be back tomorrow.

---

<div class="post-metadata">

**Author:** ![davidebaltieri31](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/davidebaltieri31/32/13747_2.png) [@davidebaltieri31](https://forum.babylonjs.com/u/davidebaltieri31)\
**Post date:** [January 18, 2021, 1:49pm UTC](https://forum.babylonjs.com/t/babylonnative-arkit/17576/3 "2021-01-18T13:49:44Z")

</div>

Thanks.

After some more tinkering I think there’s a bug somewhere. The issue arise only in debug mode, when compiling in release everything works as intended.

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [January 19, 2021, 10:59pm UTC](https://forum.babylonjs.com/t/babylonnative-arkit/17576/4 "2021-01-19T22:59:44Z")

</div>

Looks like you filed an issue already and @ryantrem was able to give you a work around. We do intend on fixing it so that you don’t have to use the work around though, but this will take some time.

> <https://github.com/BabylonJS/BabylonNative/issues/574>
>
> Running the playground app with ar enabled on iOS doesn't work in debug, but runs fine in release.
> In debug I get...
