LoginSignup
1

More than 3 years have passed since last update.

【Unity】【macOS Catalina】【iosビルド】 shader compiler errorの対処について

Last updated at Posted at 2019-11-18

今回はUnityでARを試してみようとした際に出たエラーの対処について書きたいと思います。

開発環境

  • macOS Catalina ver: 10.15.1
  • Unity 2019.2.10f1

背景

iosビルドでARアプリを実装しようとしたところshader compiler errorが大量に出ました。
最初、ARkitかARfoundationに関するバグかと思ったのですが調べるとmacOS Catalinaでのビルドに関するバグみたいです。

エラー対処

参考資料に載せているforumに従っただけですが以下手順を示します。

結論から言うと、ベータ版をダウンロードしてベータ版のshader compilerを現在使用しているバージョンのそれに置き換えるだけです。

  1. ベータ版である Unity 2019.3.0b11をダウンロード
  2. ダウンロード終了後、Finderからパッケージの内容を表示する。
    img.png
  3. Contents/Tools/UnityShaderCompilerをコピペして、自分の開発環境のそれに置き換える
    img2.png
  4. 適用させたいプロジェクトのLibraryフォルダーを削除。Unityを起動すると新しくLibraryが作られて完了です。
    img3.png

参考資料

  1. https://issuetracker.unity3d.com/issues/ios
  2. https://forum.unity.com/threads/unity-2019-2-7-build-ios-crashes-in-shader-compile.757754/?_ga=2.186811885.456730236.1573928598-986812279.1568100368

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1