项目构建在 xcode 中失败

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19533523/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:09:41  来源:igfitidea点击:

Project build failed in xcode

iosiphoneobjective-cxcode

提问by MaxEcho

Only for a specific project xcode showing project build failedwithout any error.

仅针对特定项目 xcode 显示project build failed而没有任何错误。

Which was working fine till yesterday.

直到昨天都运行良好。

Without any change it is not working today.

如果没有任何更改,它今天不起作用。

What is the issue?

问题是什么?

What can I do?

我能做什么?

回答by Amar

In your Xcode navigator, click on the Show the Log Navigatortab.

在您的 Xcode 导航器中,单击Show the Log Navigator选项卡。

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.

通常我已经看到重新启动 Xcode 会清除它的错误缓存,任何杂散错误都会消失。同样作为快速检查,创建一个新的示例应用程序并尝试构建它。如果您在构建此应用程序时也遇到错误,我建议您重新安装 Xcode。如果构建正确,则您的项目文件/代码肯定存在问题。在这种情况下,您需要在问题中添加更多详细信息。

Hope that helps!

希望有帮助!

回答by Puneet Shah

Click on this icon at your xcodeShort Ans :- Find error in this section ,Please Check attached image -[

在您的 xcode 上单击此图标简短回答:- 在本节中发现错误,请检查附件图片-[