UnityからXcodeビルドする際に起きたエラーに対応したので共有します。
バージョン情報
バージョンは以下。
Unity 2019.3.5f1
Xcode Version 12.0
原因
XcodeがiOS11に対応したことによるバグかと思います。
Device向けのビルドではエラーは起きませんでしたが、
Simulator向けのビルドで発生しました。
エラー場所はMetalHelper.mm
エラー内容は
XcodeでNo member named ‘drawableafterMinimumDuration’ in ‘UnityDisplaySurfaceMTL’

[UnityCurrentMTLCommandBuffer() presentDrawable: surface->drawableafterMinimumDuration: 1.0 / targetFPS];
の部分を
[UnityCurrentMTLCommandBuffer() presentDrawable: surface->drawable];
とすることで修正できました。
お疲れ様です。
コメント