Skip to content

Build failed (exit code 1) - see the log below #52

Closed

Description

@eduardo-santos-tribia

Hi, I'm trying to build tears of the kingdom and getting an error right after pressing the "Build game" button. It says "see the log below", but there's no log to see, so I can't check what the cause of the error is without the log info.

Image

Activity

  1. LNPANDY commented on Oct 27, 2026

    @LNPANDY
    Owner

    You are right that there is nothing to see, and it is a real bug on two counts, not just a missing log. Fixed in dc65dbab.

    What I could see in your screenshot: you picked the ToTK .xci as the base game and prod.keys, output to ~/Downloads, target "This Mac", pressed Build game — and the footer said "Build failed (exit code 1) — see the log below" with no log panel below it.

    Three separate things were wrong:

    1. The message only carried the exit code. The build's own last line is what says why, and it was thrown away. It now reads, for example: Build failed — see the log below. Last line: RuntimeError: no prod.keys in the game folder.
    2. The log really was not on screen. It sits at the bottom of a scrollable panel, and on a window shorter than about 600 px it is below the fold — I measured your case: at 900×460 the log starts at y=519 in a 390 px viewport. A failure now scrolls it into view and puts the focus there. The message says "below", so "below" is where you should already be.
    3. The note was being overwritten. The refresh right after a failure replaced it with "Still need the base game and prod.keys", which is what you may have seen if the window updated before you read it. A failed build's note now stays until the next build starts.

    What to do now, on the build you already have: the log file is always written, whether or not the panel is visible. It is in the folder shown just above the log panel — last-run.log, next to the app's data. Before updating, you can open it from there and it will say what stopped the build.

    One guess I want to be honest about: ToTK is one of the two heaviest titles in the list, and "failed immediately after pressing Build" usually means the extractor or the shader step stopped on something in the dump rather than the rewriter. When you have the log, paste the last 30 lines here and I will tell you which step it was — or send the whole file, it is plain text.

    To get the fix: rebuild the app from main (cd frontend && swift build -c release), or wait for the next release. If you are on the packaged Windows/Linux build, it is the same change and it will be in the next package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions