unity-builder icon indicating copy to clipboard operation
unity-builder copied to clipboard

Build fails on self-hosted mac runner if unity hub has custom install location

Open yvz-dmr opened this issue 3 months ago • 0 comments

I am running unity-builder on self-hosted mac and my machine doesn't have that much storage space so I added external hard drive and pointed unity hub to install unity editors to that drive which cause unity-builder to fail because it is looking at default install location for unity editor executable.

Is there any work around to this issue, it would be nice to give unity-builder the path of the unity editors folder in the yaml file

  • Here it says unity editor is already installed

Generated version 0.0.13 (no version tags found). Using android versionCode 13 Building locally /Applications/Unity Hub.app/Contents/MacOS/Unity Hub -- --headless install --version 2023.2.16f1 --changeset > 7f45223012db --module ios --architecture arm64 --childModules 2024-04-25 21:16:12.182 Unity Hub[48832:1330170] WARNING: Secure coding is not enabled for restorable state! Enable > secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES. Error while installing an editor or a module from changeset. Error: Editor already installed in this location.

  • And later on the pipeline it says it is not able to find unity editor because unity hub has custom install location

###########################

Building project

###########################

/Volumes/Mac/gh-runner/_work/_actions/game-ci/unity-builder/v4/dist/platforms/mac/steps/build.sh: line 131: > /Applications/Unity/Hub/Editor/2023.2.16f1/Unity.app/Contents/MacOS/Unity: No such file or directory

yvz-dmr avatar Apr 28 '24 17:04 yvz-dmr