[英]Use of undeclared identifier 'UnityCurrentMTLCommandEncoder'
I'm using Toon Boom Harmony and Unity (2017.2), when i build to iOS 11.1 using xcode i get the following error: 我正在使用Toon Boom Harmony and Unity(2017.2),当我使用xcode构建到iOS 11.1时,出现以下错误:
Use of undeclared identifier 'UnityCurrentMTLCommandEncoder' 使用未声明的标识符'UnityCurrentMTLCommandEncoder'
Use of undeclared identifier 'UnityEndCurrentMTLCommandEncoder' 使用未声明的标识符'UnityEndCurrentMTLCommandEncoder'
static int registerCallbacks()
{
HarmonySetGetMetalBundleFunc(&UnityGetMetalBundle);
HarmonySetGetMetalDeviceFunc(&UnityGetMetalDevice);
HarmonySetCurrentMTLCommandEncoderFunc(&UnityCurrentMTLCommandEncoder); // Error
HarmySetEndCurrentMTLCommandEncoder(&UnityCurrentEndMTLCommandEncoder); // Error
HarmonySetCurrentMTLCommandBufferFunc(&UnityCurrentMTLCommandBuffer);
HarmonySetGetMetalCommandQueueFunc(&UnityGetMetalCommandQueue);
return 0;
}
Thanks in advance! 提前致谢!
也许您使用的框架与Swift 4不兼容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.