tro*_*foe 5 shader ios ios-simulator metal
我正在Cocos2d-x v4分支上工作,该分支引入了Metal后端支持,并使用glsl-optimizer将GLSL转换为MSL以便在运行时使用进行编译newLibraryWithSource:options:error:。
对于iOS 13设备,使用Xcode 11 beta可以很好地进行编译,但是,对于iOS 13 Simulator进行编译时,着色器无法编译,并出现以下错误:
Error: PCH file built from a different branch ((metalfe-902.9.49)) than the compiler ((metalfe-902.9.52))
Run Code Online (Sandbox Code Playgroud)
有人有什么想法吗?
更多详细信息:在提出这个问题时,我在macOS 10.15 beta 5上使用了Xcode 11 beta5。我现在已经更新到macOS 10.15 beta 6,并且没有变化。我怀疑可以通过更新Xcode 11 beta来解决。