xcode 构建失败 没有解释
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11048549/
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
xcode build failed no explanation
提问by user987723
My project has weirdly started failing with no error messages. Ive tried cleaning the project and this had no effect. I know this is all a bit vague but i havent done anything to revert or undo. its just randomly started to happen. Can anyone suggest a way of debugging what the problem is?
我的项目奇怪地开始失败,没有错误消息。我试过清理项目,但这没有效果。我知道这有点含糊,但我没有做任何事情来恢复或撤消。它只是随机开始发生。任何人都可以提出一种调试问题的方法吗?
Phil
菲尔
回答by Thomas
Have you tried clearing the derived data (Organizer->Projects / cmd + shift + 2) and then cleaning (cmd+shift+K)?
您是否尝试过清除派生数据(Organizer->Projects / cmd + shift + 2)然后清理(cmd+shift+K)?
Maybe closing xCode and rebooting?
也许关闭 xCode 并重新启动?
I've had it a few times and this worked for me sometimes.
我已经有几次了,这有时对我有用。
回答by Rost
I had the same issue. If you're using non-arc code in arc project, make sure you added "-fno-objc-arc" flags to .m files. instruction
我遇到过同样的问题。如果您在 arc 项目中使用非 arc 代码,请确保将“-fno-objc-arc”标志添加到 .m 文件。操作说明
回答by Raj
I needed to re-clone my git repository to see what the build issue actually was. In my case the build issue was related to a dev provisioning profile that was no longer valid. I was able to correct this easily and the build properly.
我需要重新克隆我的 git 存储库以查看构建问题的实际情况。在我的情况下,构建问题与不再有效的开发配置文件有关。我能够轻松地纠正这一点,并正确构建。