Xcode: Build Failed, but no error messages

Using Xcode 4.5.1. Our project has been building fine for the last three months, but suddenly, when I try to build, it says "Build failed", but does not show any errors on the triangle exclamation mark tab, nor does it give a reason when it pops up build failed.

We have not changed the bundle identifier, or any other project properties. I tried a clean, then build, but no luck.

What may be causing the problem?

Similar to this question, but none of the solutions apply.


Solution 1:

Figured it out. On the tab with three lines in a speech bubble, it shows a build log. I guess my storyboard file had become corrupt during the last git pull.

For Xcode 12+ screenshot of Xcode 12 toolbar

Solution 2:

You can see reasons for failure on Report Navigator present in Navigator window.

  • Open Navigator by pressing Hide/Show Navigator button present in top-left side of Xcode.

Screenshot 1

  • Open Report Navigator by pressing last button present on list of buttons in Navigator window.

Screenshot 2

Here you can view reasons either By Group or By Time

Solution 3:

Click the last icon in the top bar of the left most panel in your Xcode window to reveal the secret Archive build errors.

enter image description here

It will likely be something related to code signing if you are able to build and run the app, but not Archive. Further googling of your error message should resolve that now that it has been revealed.