11

Only for a specific project xcode showing project build failed without any error.

Which was working fine till yesterday.

Without any change it is not working today.

What is the issue?

What can I do?

MD SHAHIDUL ISLAM
  • 14,325
  • 6
  • 82
  • 89

2 Answers2

65

In your Xcode navigator, click on the Show the Log Navigator tab.

enter image description here

This tab will contain the build logs for each time your build/compile the application. When an error occurs, this will show you details. There is an expand button to check the details causing the error. Check the steps until it fails, see if anything fishy is happening during the build process. Usually in error cases the build process will freeze/quit at a particular source file.

enter image description here

Usually I have seen that restarting Xcode would clear its error cache and any stray errors will go away. Also as a quick check create a new sample app and try building it. If you get errors building this app as well, I'd suggest you reinstall the Xcode. If this builds properly, there is definitely issue with your project files/code. In that case you need to add more details in your question.

Nimantha
  • 6,405
  • 6
  • 28
  • 69
Amar
  • 13,202
  • 7
  • 53
  • 71
  • @salim Is this helpful? – Amar Oct 23 '13 at 08:36
  • Thanks for the answer. But I can not see any issue into log navigator. Just showing `project build failed`. – MD SHAHIDUL ISLAM Oct 23 '13 at 08:40
  • @Salim Are there any steps printing in the log which shows some source files? Could you share a screenshot of log navigator? – Amar Oct 23 '13 at 08:41
  • Oh great answer I have found the issue in navigator. That is: The document "DialpadController.xib" could not be opened. Could not read archive. – MD SHAHIDUL ISLAM Oct 23 '13 at 08:51
  • @Salim Try this .. http://stackoverflow.com/questions/17156004/the-document-xxxx-xib-could-not-be-opened-could-not-read-archive – Amar Oct 23 '13 at 08:53
  • @Salim 1. Right click on XXX.xib file and select "Show File Inspector." 2. Go to Interface Builder Document. 3. Change Development option with the version of Xcode you are using. – Amar Oct 23 '13 at 08:54
  • I got this error too. I'm changing my mac's date to test a function. I'm setting it on a future date. If I compile and build and there's no error, xcode keeps a log of it. When I revert to the correct date and there's an error, xcode, I think, searches for the 'latest' build details/errors and gets my 'future' build data so I can't get my build error data for 'now'. – acecapades Jan 15 '14 at 07:09
  • @Salim I am able to see the images. – Amar May 31 '14 at 06:38
1

Find the error by clicking on this icon at your xcode:

Nimantha
  • 6,405
  • 6
  • 28
  • 69