Bug Mr Pig book 3D Apple Game tutorial

Hello,

I bought the book 3D Apple Game tutorial today and when I run Mr Pig on my iPhone 7, I have this error : /BuildRoot/Library/Caches/com.apple.xbs/Sources/Metal/Metal-85.83/ToolsLayers/Debug/MTLDebugRenderCommandEncoder.mm:946: failed assertion `For color attachment 0, the render pipeline’s pixelFormat (MTLPixelFormatRGBA8Unorm_sRGB) does not match the framebuffer’s pixelFormat (MTLPixelFormatBGR10_XR_sRGB).’

How can run the game on my iphone 7?

Thank you