I have an install/archive problem on macOS. It seems like there is a bug in UE 5.8 when doing BuildCookRun with `-archive`.
UE’s engine-generated run-script “Copy Executable and Staged Data into .app” copies into $CONFIGURATION_BUILD_DIR/My.app. During a normal build that’s the real bundle, so it works. But an archive is an install action (ACTION=install, DEPLOYMENT_LOCATION=YES), where Xcode assembles the real bundle in $TARGET_BUILD_DIR (…/InstallationBuildProductsLocation/Applications/My.app), and CONFIGURATION_BUILD_DIR diverges to a different, not-a-ready-directory path. So cp uecommandline.txt $CONFIGURATION_BUILD_DIR/My.app → Not a directory → ARCHIVE FAILED . Every other step (actool, Info.plist, framework copy) correctly used …/InstallationBuildProductsLocation/Applications/My.app.
As far as I understand I need to do archive to properly create and sign an IPA, but this seems to be broken in UE 5.8? Is this a known issue or am I doing something wrong here? If there’s any information anywhere regarding this please link me.