After build my standalone app IOS model not closing when try to open gallery

I have model that has button to open gallery on IOS simulator it working fine when press on the button the model disappear and gallery opened but after build app and try in iphone 7 the model still opened above the gallery