zoukankan      html  css  js  c++  java
  • Unity2018.4.7导出Xcode工程报错解决方案

    1. unity导出xcode工程有两种模式,一种为模拟器运行的工程,一种为真机运行的工程,这里遇到的错误,都是导出模拟器运行工程时报的错误。

    错误1:

    unity UnityMetalSupport Duplicate interface definition for class 'CAMetalLayer'

    解决方案:

    //把报错的地方的代码替换为下方代码:
    @interface CAMetalLayer (category)
    @property (readwrite) BOOL framebufferOnly;
    @property (readwrite) CGSize drawableSize;
    @property BOOL presentsWithTransaction;
    @property (readwrite, retain) id<MTLDevice> device;
    @property (readwrite) MTLPixelFormat pixelFormat;
    @property (readonly) id<MTLTexture> texture;
    
    - (id<CAMetalDrawable>)newDrawable;
    - (id<CAMetalDrawable>)nextDrawable;
    @end

    错误2:

    Typedef redefinition with different types ('void *' vs 'struct __CVMetalTextureCach

    解决方案:

    解决方法很简单,在CVTextureCache.mm文件中,全局替换:
    把 CVMetalTextureCacheRef 替换为 UCVMetalTextureCacheRef、
    把 CVMetalTextureRef 替换为 UCVMetalTextureRef。

    参考:

    1.https://www.jianshu.com/p/e80980a02060 古道西风瘦啥

    2.https://www.jianshu.com/p/058cb8bf0a63 古道西风瘦啥

  • 相关阅读:
    多维梯度下降
    梯度下降
    三种评价函数
    Gluon sgd
    Gluon.vision的几类数据集
    Gluon Data API
    Gluon 实现 dropout 丢弃法
    AlexNet 分类 FashionMNIST
    LeNet 分类 FashionMNIST
    LeNet
  • 原文地址:https://www.cnblogs.com/leiGameDesigner/p/13037656.html
Copyright © 2011-2022 走看看