Am unable to package for IOS via remote build due (at least in part) to a problem with the staged build directory. Specifically, the directory is being called invalid. Steps to reproduce below:
- Create any default AR project (appears to work with any project that requires remote build, but tested most with fresh AR projects)
- Upload provisioning profile and certificate in project settings → IOS (development and distribution provisioning profiles have same effect)
- Set up remote build SSH key
- Package for IOS
- Build fails with warning “UATHelper: Packaging (IOS): WARNING: To run, you must have a valid staged build directory”
- Create directory manually on apple machine (Project settings no longer includes a way to set the staging directory, so cannot set from there). Package for IOS. During build, directory is deleted automatically, resulting in same error.
Feel this may just be a bug, but, UAT and remote building for IOS are weird. Maybe something has just changed that I’m unaware of?
Any help, even pointing me in the right direction, is appreciated!
Error log below, with added asterisks for errors and warnings (***** for error, *** for warning):
UATHelper: Packaging (IOS): =========================================================================================
***UATHelper: Packaging (IOS): WARNING: To run, you must have a valid staged build directory. The Staged location is:
UATHelper: Packaging (IOS): /Users/noahbeggs/UE5/Builds/DeeperThought/C/Users/NoahBalboa/Documents/Unreal_Projects/RadBuilds_Workspace/RadBuilds/Saved/StagedBuilds/IOS
UATHelper: Packaging (IOS): Use the editor’s Platforms menu, or run a command like::
UATHelper: Packaging (IOS): ./RunUAT.sh BuildCookRun -platform=IOS -project= -build -cook -stage -pak
UATHelper: Packaging (IOS): =========================================================================================
UATHelper: Packaging (IOS): CodeSign /Users/noahbeggs/UE5/Builds/DeeperThought/C/Users/NoahBalboa/Documents/Unreal_Projects/RadBuilds_Workspace/RadBuilds/Binaries/IOS/RadBuilds.app (in target ‘RadBuilds’ from project ‘RadBuilds (IOS)’)
UATHelper: Packaging (IOS): cd /Users/noahbeggs/UE5/Builds/DeeperThought/C/Users/NoahBalboa/Documents/Unreal_Projects/RadBuilds_Workspace/RadBuilds/Intermediate/ProjectFilesIOS
UATHelper: Packaging (IOS): Signing Identity: “Apple Development: Noah Beggs (UJ69WNVB5S)”
UATHelper: Packaging (IOS): Provisioning Profile: “RadBuilds_PlzWork”
UATHelper: Packaging (IOS): (1c33b6cd-58e5-43ce-810a-75307ca60f29)
UATHelper: Packaging (IOS): /usr/bin/codesign --force --sign E98033775ACA4996252859A6EE518D775DDAD033 --entitlements /Users/noahbeggs/UE5/Builds/DeeperThought/C/Users/NoahBalboa/Documents/Unreal_Projects/RadBuilds_Workspace/RadBuilds/Binaries/RadBuilds\ (IOS).build/IOS/RadBuilds.build/RadBuilds.app.xcent --timestamp=none --generate-entitlement-der /Users/noahbeggs/UE5/Builds/DeeperThought/C/Users/NoahBalboa/Documents/Unreal_Projects/RadBuilds_Workspace/RadBuilds/Binaries/IOS/RadBuilds.app
***UATHelper: Packaging (IOS): Warning: unable to build chain to self-signed root for signer “Apple Development: Noah Beggs (UJ69WNVB5S)”
UATHelper: Packaging (IOS): /Users/noahbeggs/UE5/Builds/DeeperThought/C/Users/NoahBalboa/Documents/Unreal_Projects/RadBuilds_Workspace/RadBuilds/Binaries/IOS/RadBuilds.app: errSecInternalComponent
UATHelper: Packaging (IOS): Command CodeSign failed with a nonzero exit code
UATHelper: Packaging (IOS): ** BUILD FAILED **
UATHelper: Packaging (IOS): The following build commands failed:
UATHelper: Packaging (IOS): CodeSign /Users/noahbeggs/UE5/Builds/DeeperThought/C/Users/NoahBalboa/Documents/Unreal_Projects/RadBuilds_Workspace/RadBuilds/Binaries/IOS/RadBuilds.app (in target ‘RadBuilds’ from project ‘RadBuilds (IOS)’)
UATHelper: Packaging (IOS): (1 failure)
*****UATHelper: Packaging (IOS): ERROR: Failed to finalize the .app with Xcode. Check the log for more information
UATHelper: Packaging (IOS): Total time in Parallel executor: 22.13 seconds
UATHelper: Packaging (IOS): Total execution time: 27.28 seconds
UATHelper: Packaging (IOS): [Remote] Downloading C:\Users\NoahBalboa\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\UBA-RadBuilds-IOS-Development_Remote.txt
***PackagingResults: Warning: To run, you must have a valid staged build directory. The Staged location is:
***PackagingResults: Warning: unable to build chain to self-signed root for signer “Apple Development: Noah Beggs (UJ69WNVB5S)”
*****PackagingResults: Error: Failed to finalize the .app with Xcode. Check the log for more information
UATHelper: Packaging (IOS): Total execution time: 75.58 seconds
UATHelper: Packaging (IOS): Took 75.74s to run dotnet.exe, ExitCode=11
UATHelper: Packaging (IOS): UnrealBuildTool failed. See log for more details. (C:\Users\NoahBalboa\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\UBA-RadBuilds-IOS-Development.txt)
UATHelper: Packaging (IOS): AutomationTool executed for 0h 1m 23s
UATHelper: Packaging (IOS): AutomationTool exiting with ExitCode=11 (Error_ProvisionNotFound)
UATHelper: Packaging (IOS): BUILD FAILED
*****PackagingResults: Error: Provision Not Found