Why this happens
Xcode has two different places for build problems. The Issue navigator (Cmd+5) is a filtered list of diagnostics — the error: and warning: lines that a compiler, linker, Interface Builder or script phase actually emitted. The Report navigator (Cmd+9) holds the raw build log: every task Xcode ran, its exit status, and its full output.
When a step fails without printing a diagnostic, the Issue navigator has nothing to show, but the build still stops. Xcode then reports the only thing it knows: Build failed. This is common with Interface Builder steps, copy phases, Run Script phases, code signing and the occasional compiler crash. In older Xcode versions the Interface Builder step in particular could fail silently, which is why a corrupt .storyboard file pulled from git is a classic cause.
The second common cause is stale state. Derived Data, a half-written build folder, or a file that was merged badly can make a target fail before any source file is compiled.
How to fix it
1. Read the build log in the Report navigator
This is the fix that resolves most of these cases, because it tells you which step died.
- Show the Navigator with the top-left Hide/Show Navigator button, or press Cmd+0.
- Select the last icon in the navigator bar — the speech bubble — or press Cmd+9. That is the Report navigator.
- Pick the most recent build at the top of the list (the failed one is marked with a red badge).
- Expand the entry for your target, then expand the steps. The failing step is marked in red.
- Use the filter field at the top of the log to search for
error:,failed, orCommandto jump straight to the problem.
The log can be viewed By Group (per target and step) or By Time (chronological). By Group is easier when you just want to know which step broke; By Time is better when a script phase produces output you need to read in order.
2. Identify the kind of step that failed
The step name in the log tells you where to look next:
CompileStoryboard/CompileXIB— a corrupt or conflicting Interface Builder file.PhaseScriptExecution failed with a nonzero exit code— one of your Run Script build phases returned an error. Expand it to read the script’s own output.CodeSign— signing or provisioning. The log names the identity and the file it could not sign.SwiftCompileending in a crash report orPlease submit a bug report— the compiler itself crashed. Isolate the file by compiling it alone or commenting out recent changes.Copy/CpResource— a missing file, a bad path, or a permissions problem in the destination.
If the failing step is inside a dependency (a Pods target or a Swift package), the error belongs to that target, not yours. Build that target on its own to see the message.
3. Fix a corrupt storyboard or xib
If the log points at CompileStoryboard, the file is usually damaged — often by a merge during a git pull.
- Check the file for conflict markers and broken XML:
xmllint --noout Base.lproj/Main.storyboard
grep -n '<<<<<<<' Base.lproj/Main.storyboard
- Look at what changed:
git diff -- Base.lproj/Main.storyboard
- If the diff is garbage, restore the last known-good version and redo your edits by hand:
git checkout -- Base.lproj/Main.storyboard
- Open the storyboard in Xcode. If Xcode refuses to open it or shows an empty canvas, the file is beyond repair — restore it from version control rather than trying to patch the XML.
Storyboards are XML, so a single missing closing tag makes the whole file unparseable and the Interface Builder step exits without a useful message.
4. Clean the build folder and Derived Data
If the log shows a step failing on a file that looks fine, or the failure moves around between builds, clear the cached state.
- Product > Clean Build Folder (Shift+Cmd+K).
- If that does not help, delete Derived Data. Find the path under Xcode > Settings > Locations > Derived Data, then remove the folder for this project:
rm -rf ~/Library/Developer/Xcode/DerivedData/MyApp-*
- Build again. The first build after this is slow because everything is recompiled.
5. Build from the command line to get the full transcript
When the GUI log is hard to read, xcodebuild prints the same output as plain text that you can search and share:
xcodebuild -project MyApp.xcodeproj -scheme MyApp build 2>&1 | tee build.log
grep -n -i 'error\|failed' build.log
This is also the fastest way to confirm whether the failure is real or an Xcode UI problem — if the terminal build succeeds, the project is fine and the issue is local build state.
How to prevent it
- Check the Report navigator first, every time. The Issue navigator is a summary, not the source of truth.
- Treat storyboards and xibs as text: review their diffs in pull requests and resolve conflicts by hand, never with a blind “accept both”.
- Split large storyboards into one per flow, or move to SwiftUI views, to shrink the surface for merge conflicts.
- Run Clean Build Folder after switching branches or pulling a large merge.
- Make Run Script phases print what they are doing and fail loudly, so the log explains itself.
- Keep CI logs for failing builds — they usually contain the message that Xcode’s UI dropped.
FAQ
Why is the Issue navigator completely empty after a failed build?
Because no tool printed a diagnostic. The build stopped on a non-zero exit status from a step that produced no error: line, so there was nothing for Xcode to list. The exit status and the step name are only in the build log.
Does Clean Build Folder usually fix this?
Sometimes. It helps when the failure comes from stale Derived Data or a partially written build folder, but it does nothing for a corrupt storyboard or a broken script phase. Read the log first so you know which of the two you are dealing with.
Can a corrupt storyboard really fail the build with no message?
Yes. The Interface Builder compile step exits with an error, and depending on the Xcode version the diagnostic may not reach the Issue navigator. The step still appears in the Report navigator, which is how you find it.
Parts of this guide are adapted from content licensed under CC BY-SA 4.0; this article is shared under the same license.