Xcode 8每次都重新编译完整的代码 [英] Xcode 8 recompiling complete code every time

查看:550
本文介绍了Xcode 8每次都重新编译完整的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果代码有任何变化(虽然文件不在.pch中),每次完成项目都会重新编译。

With any change in code (though file is not in .pch), complete project recompiles every time.

推荐答案

更新2017/1/2

Xcode 8.2.1(我的项目)尚未解决此问题

This issue has not been resolved at Xcode 8.2.1 (for my project)

如何生存?

Code IDE: Xcode/Atom
Build: xcrun
Debug: Xcode (Control + Command + R)

更新2016/12/17

Xcode 8.2尚未解决此问题。

This issue has not been resolved at Xcode 8.2.

更新2016/12/12

Atom代码和命令行到构建和调试是我现在的选择。
希望Apple很快就会修复这个合法的bug。

Atom to code and command line to build and debug is my choice now. Hope Apple will fix this legit bug soon.

更新2016/12/04

此问题似乎使用Xcode 8.2(beta 2)解决。

但对我而言,即使我使用Xcode 8.2,我也面临这个问题。
你可以尝试一下(下载Xcode8.2 beta2 这里

But for me its not be resolved, i face this issue even when i use Xcode 8.2. You can give it a try (download Xcode8.2 beta2 here)


构建系统•当仅发生小的
更改时,Xcode不会重建整个目标。 (28892475)

Build System • Xcode will not rebuild an entire target when only small changes have occurred. (28892475)






旧答案:
这是一个解决方法:


Old answer: This is a work around:

< img src =https://i.stack.imgur.com/sLnSy.pngalt =在此输入图像说明>
构建设置选项卡 - >C语言方言 - >将其更改为编译器默认值。

"Build Setting" tab -> "C Language Dialect" -> Change it to "Compiler Default".

供参考


C语言方言设置为GNU99而不是编译器
默认。以前标准是GNU99,但现在不是。在一些
点,Xcode没有正确地迁移库项目设置和
所以它被设置为GNU99。一旦我将其更改为GNU99,它就会停止
每次重新编译我的所有代码!

The "C Language Dialect" was set to "GNU99" instead of "Compiler Default". Previously the standard was GNU99 but now its not. At some point Xcode did not migrate the library project settings correctly and so it was set to GNU99. Once I changed it to GNU99 it stopped recompiling all my code every time !

这篇关于Xcode 8每次都重新编译完整的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆