Failed to finalize the .app with Xcode in Unreal Engine

The engine handed the final app bundle to Xcode (xcodebuild) and Xcode returned an error. The cause is printed by xcodebuild in the lines just above.

  • Blocking: the package fails
  • From user reports, not yet reproduced in our lab

Paste your log: find the cause in seconds Runs in your browser, nothing is uploaded.

Common causes

  • An Xcode version not supported by the engine version.
  • Xcode license not accepted or command line tools not selected.
  • Signing settings: missing team, certificate or provisioning profile.

How to fix it

  1. Read the xcodebuild output above this line and search for "error:".
  2. Check that your Xcode version is supported by your engine version, and run sudo xcodebuild -license accept.
  3. Make sure the right Xcode is selected: xcode-select -p, or sudo xcode-select -s /Applications/Xcode.app.
  4. Check signing in Project Settings > Platforms (team ID, certificate, provisioning profile), then package again.

Questions

Can it be caught before cooking?

Yes, it can be checked before you start a cook: Check the Xcode version, license state, selected developer directory and signing settings.

Reports and sources

Decode your log

Paste your packaging log, or drop Log.txt with Cook-*.txt / UBA-*.txt. The analysis runs in your browser: the log is never uploaded.

Get notified when the in-editor plugin launches

The same decoder inside the Unreal Editor, with checks that catch these errors before you cook.