Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project build failed in xcode

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?

like image 366
MaxEcho Avatar asked Oct 23 '13 05:10

MaxEcho


People also ask

Why is my build failing in Xcode?

A common cause of failing builds is that Xcode Cloud can't access the Package. resolved file that it needs to resolve your Swift Package dependencies. To resolve issues related to the Package.

How do I clean up and build in Xcode?

To clean the build folder you can use the shortcut Command+Option+Shift+K or Menu Bar → Product → Hold Option Key → Clean build Folder .

Where is build settings in Xcode?

Choose the project in the Project Navigator on the left. Select the Configurations target from the Targets section and click the Build Settings tab at the top. The Build Settings tab shows the build settings for the Configurations target. It's possible to expand this list with build settings that you define.


2 Answers

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.

like image 119
Amar Avatar answered Oct 26 '22 09:10

Amar


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

like image 20
Puneet Shah Avatar answered Oct 26 '22 08:10

Puneet Shah