Xcode Archive error. Unity 2022 Jenkins

Running xcodebuild from Jenkins on an Xcode project output from an empty Unity project on Unity 2022.3 LTS fails. If I run xcodebuild locally from the terminal, it completes successfully. Do you have any tips on how to solve this problem?

Use. Unity 2022.3.2f1〜2022.3.15f1 Xcode 15.0.1

/bin/sh -c /Users/{USER}/Library/Developer/Xcode/DerivedData/Unity-iPhone-fccvqnhxioaggxfbwwwuzbtcqgcn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/GameAssembly.build/Script-C62A2A42F32E085EF849CF0B.sh
/Users/{USER}/jenkins-workspace/workspace/s0/ios5/Il2CppOutputProject/IL2CPP/build/deploy_x86_64/il2cpp --compile-cpp --platform=iOS --baselib-directory=/Users/{USER}/jenkins-workspace/workspace/s0/ios5/Libraries --additional-defines=IL2CPP_DEBUG=0 --incremental-g-c-time-slice=3 --dotnetprofile=unityaot-macos --profiler-report --print-command-line --external-lib-il2-cpp=/Users/{USER}/jenkins-workspace/workspace/s0/ios5/Libraries/libil2cpp.a --generatedcppdir=Il2CppOutputProject/Source/il2cppOutput --architecture=arm64 --outputpath=/Users/{USER}/Library/Developer/Xcode/DerivedData/Unity-iPhone-fccvqnhxioaggxfbwwwuzbtcqgcn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/libGameAssembly.a --cachedirectory=/Users/{USER}/Library/Developer/Xcode/DerivedData/Unity-iPhone-fccvqnhxioaggxfbwwwuzbtcqgcn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/artifacts/arm64 --configuration=Release
Starting: /Users/{USER}/jenkins-workspace/workspace/s0/ios5/Il2CppOutputProject/IL2CPP/build/deploy_x86_64/bee_backend/mac-x64/bee_backend --profile="/Users/{USER}/Library/Developer/Xcode/DerivedData/Unity-iPhone-fccvqnhxioaggxfbwwwuzbtcqgcn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/artifacts/arm64/buildstate/backend_profiler0.traceevents" --beedriver-listener --dagfile="/Users/{USER}/Library/Developer/Xcode/DerivedData/Unity-iPhone-fccvqnhxioaggxfbwwwuzbtcqgcn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/artifacts/arm64/buildstate/bee.dag" --continue-on-failure FinalProgram
WorkingDir: /Users/{USER}/Library/Developer/Xcode/DerivedData/Unity-iPhone-fccvqnhxioaggxfbwwwuzbtcqgcn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/artifacts/arm64/buildstate
ExitCode: 4 Duration: 0s33ms
ExitCode: 1 Duration: 0s1ms
Build failed with 0 successful nodes and 0 failed ones
Error: Internal build system error. BuildProgram exited with code 1.

System.IO.FileNotFoundException: Executable softwareupdate could not be found or opened.
File name: 'softwareupdate'
---> System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'softwareupdate' with working directory '/Users/{USER}/Library/Developer/Xcode/DerivedData/Unity-iPhone-fccvqnhxioaggxfbwwwuzbtcqgcn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/artifacts/arm64/buildstate'. No such file or directory
at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Bee.Tools.ExecuteResult..ctor(Process process, Int32 timeoutMilliseconds) in /Users/bokken/build/output/unity/unity/Tools/Bee/Bee.Tools/ExecuteResult.cs:line 76
at Bee.Tools.ExecuteResult..ctor(Process process, Int32 timeoutMilliseconds) in /Users/bokken/build/output/unity/unity/Tools/Bee/Bee.Tools/ExecuteResult.cs:line 83
at Bee.Tools.Shell.Execute(Process preparedProcess, Int32 timeoutMilliseconds) in /Users/bokken/build/output/unity/unity/Tools/Bee/Bee.Tools/Shell.cs:line 90
at Bee.Toolchain.Xcode.XcodeCommandLineTools.<>c.<.cctor>b__19_0() in /Users/bokken/build/output/unity/unity/Tools/Bee/Bee.Toolchain.Xcode/XcodeCommandLineTools.cs:line 45
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at Bee.Toolchain.Xcode.XcodeCommandLineTools.get_IsInstalled() in /Users/bokken/build/output/unity/unity/Tools/Bee/Bee.Toolchain.Xcode/XcodeCommandLineTools.cs:line 57
at Bee.Toolchain.Xcode.XcodeInstallationLocator.ScanForSystemInstalledSdks() in /Users/bokken/build/output/unity/unity/Tools/Bee/Bee.Toolchain.Xcode/XcodeInstallationLocator.cs:line 92
at Bee.NativeProgramSupport.Locator`1.<>c__DisplayClass3_1.<.ctor>b__2() in /Users/bokken/build/output/unity/unity/Tools/Bee/Bee.NativeProgramSupport/Locator.cs:line 49
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at Bee.NativeProgramSupport.Locator`1.get_SystemInstalledSdks() in /Users/bokken/build/output/unity/unity/Tools/Bee/Bee.NativeProgramSupport/Locator.cs:line 66
at Unity.IL2CPP.Bee.BuildLogic.iOS.iOSBuildLogic.GetCompatibleXcodeInstallation(Architecture architecture, Version xcodeMinVersion, Version platformSdkMinVersion, Identifier platformSdkIdentifier, XcodePlatformSdk& compatiblePlatformSdk, XcodeInstallation& compatibleXcodeInstallation)
at Unity.IL2CPP.Bee.BuildLogic.iOS.iOSBuildLogic.UserAvailableToolchainFor(Architecture architecture, NPath toolChainPath, NPath sysRootPath)
at Unity.IL2CPP.Bee.IL2CPPExeCompileCppBuildProgram.BuildProgram.Main(String[] args, String currentDirectory)
at Unity.IL2CPP.Building.InProcessBuildProgram.StartImpl(String workingDirectory, String[] arguments) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/InProcessBuildProgram.cs:line 51
Xcode Archive error. Unity 2022 Jenkins
 
 
Q