This issue only occurred while debugging the app. I was finally able to resolve it by changing
Edit Scheme - Run - Options - GPU Frame Capture from Automatically Enabled to OpenGL ES.
Not sure why it worked.
Topic:
App & System Services
SubTopic:
Hardware
Tags: