Closed Cherden closed 10 months ago
Can you share a minimal reproducible example?
I use I2CPP and have working StandaloneWindows64 builds with unityci/editor:windows-2021.3.16f1-windows-il2cpp-1
: https://github.com/finol-digital/Card-Game-Simulator/actions/runs/4088041461/jobs/7050146747
Sure https://filetransfer.io/data-package/qrUrQF9k#link. Open bash in root folder and paste with adjusted project path and replaced licensing credentials:
MSYS_NO_PATHCONV=1 docker run -it --rm \
-v C:\\Path\\To\\Project\\unity:C:\\workspace \
-e WORKSPACE="C:\workspace" \
-e UNITY_DIR="C:\workspace\My_project" \
-e BUILD_TARGET=StandaloneWindows64 \
-e BUILD_NAME=Project \
-e SCRIPTING_BACKEND=IL2CPP \
-e SERVER_BUILD=true \
-e UNITY_USER=email \
-e UNITY_PW=pw \
-e UNITY_SERIAL=serial \
unityci/editor:windows-2021.3.13f1-windows-il2cpp-1 cmd.exe
In cmd start with C:\workspace\ci\build.bat
.
There's been a lot of changes to the Windows docker images recently. Is this still an issue?
Hi. I have a problem building using the
unityci/editor:windows-2021.3.13f1-windows-il2cpp-1
image. When callingBuildPipeline.BuildPlayer
I get the errorError building Player: Currently selected scripting backend (IL2CPP) is not installed.
. The build target is set the following way:EditorUserBuildSettings.SwitchActiveBuildTarget(NamedBuildTarget.Server, BuildTarget.StandaloneWindows64)
. My logs confirm that the scripting backend is actually set andBuildPlayer
is called with the parameters:While figuring out whether the problem is on my side I executed the build script on my host machine, where it works. As a sanity check I also tried building for target
StandaloneWindows64
as a non-server build using the image, which results in the same error.Thanks in advance.