コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Failed to resolve packages: Failed to add editor bundled package

概要

Failed to resolve packages: Failed to add editor bundled package [/Applications/Unity/Hub/Editor/XXXX/Unity.app/Contents/Resources/PackageManager/Editor/com.unity.xr.arsubsystems-2.1.2.tgz] to the package cache:
  ENOTEMPTY: directory not empty, rename '/Users/XXXX/Library/Unity/cache/npm/packages.unity.com/.tmp17341ZUxSMiQBw7I8/tarball' -> '/Users/XXXX/Library/Unity/cache/npm/packages.unity.com/com.unity.xr.arsubsystems/2.1.2'. No packages loaded.

A re-import of the project may be required to fix the issue or a manual modification of /XXXX/Packages/manifest.json file.
[Package Manager] Server::Kill -- Server was shutdown
  • 新しく購入した Mac で Jenkins のジョブをビルドして Git リポジトリの Clone と Unity プロジェクトのビルドを行おうとしたら上記のエラーに遭遇した
  • 一度 Mac で Unity プロジェクトを開き、初回インポートが終わったら Unity プロジェクトを閉じて Jenkins のジョブを再度ビルドしたらエラーが発生しなくなった