How to realize light occlusion for AR in iOS?

The light works right on the computer but when I deploy this AR project to iPhone, the object closed to the light source cannot block light from the object behind it. Both of these two objects are bright in the front and dark on the back; however, the occluded object should be entirely dark. How can I solve it?