Hi. It seems "MTLDevice newLibraryWithData:error:" would cause runtime error while running on iOS 13 simulator with Xcode 11.
I tried to create a new project and called this method only, and the same error showed in the logging as always.
I also tried to remove the DerivedData folder, clean build folder, restarted my computer, etc. None is working.
Any idea how to fix it? Thanks.
Error: PCH file built from a different branch ((metalfe-902.9.49)) than the compiler ((metalfe-902.9.52))
Me too; I am playing with cocos2d-x v4 branch which translates glsl to msl and works fine on an iOS device. Did you have any luck with this?
This is solved in Xcode 11 beta 6.