Hi,
I got similar [General] -[_MTLFunctionInternal baseObject]: unrecognized selector sent to instance 0x129e42710 crashes with
12 GLEngine 0x00000001e545eea4 glDrawArrays_ES2Exec + 216
It worked fine for running the iPhone app on my M1 MacBook Pro (MacOS 11.4).
But after I updating static library (*.a file) or changing CocoaPods integration from dynamic to static, the crashes happened without other changes.
After a few searches, I found a workaround for running on M1 MacBook (not solving the real problem).
Maybe you can try it:
Got to Edit Scheme → Run → Options → GPU Frame Capture.
Change value from Automatically Enabled to OpenGL ES or Disabled.