我正在开发Coco2d-x v4分支,它引入了金属后端支持,并使用glsl-优化器将GLSL转换为MSL,以便在运行时使用newLibraryWithSource:options:error:进行编译。
这在iOS 13设备上使用Xcode 11 beta进行了很好的编译,但是当为iOS 13模拟器编译时,着色器无法编译,出现以下错误:
Error: PCH file built from a different branch ((metalfe-902.9.49)) than the compiler ((metalfe-902.9.52))有人有什么想法吗?
详细信息:在提出这个问题时,我在macOS 10.15 beta 5上使用Xcode 11 beta 5,现在我已经更新到macOS 10.15 beta 6,没有任何变化。我怀疑这可能是通过更新Xcode 11测试版来解决的。
发布于 2019-08-20 20:40:36
使用Xcode 11 beta 6解决了这个问题。
https://stackoverflow.com/questions/57519502
复制相似问题