随着代码的任何更改(尽管文件不在 .pch 中),每次都会重新编译整个项目。
最佳答案
更新2017/1/2
这个问题在 Xcode 8.2.1 中还没有解决(对于我的项目)
如何生存?
Code IDE: Xcode/Atom
Build: xcrun
Debug: Xcode (Control + Command + R)
更新 2016/12/17
此问题在 Xcode 8.2 中尚未解决。
更新 2016/12/12
Atom 编码和命令行构建和调试是我现在的选择。 希望 Apple 能尽快修复这个合法的错误。
更新 2016/12/04
这个问题好像resolved with Xcode 8.2 (beta 2) .
但对我来说它没有得到解决,即使我使用 Xcode 8.2 也会遇到这个问题。 你可以试一试(下载 Xcode8.2 beta2 here )
Build System • Xcode will not rebuild an entire target when only small changes have occurred. (28892475)
旧答案: 这是一个解决方法:
“Build Setting”选项卡 -> “C Language Dialect” -> 将其更改为“Compiler Default”。
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 !
关于ios - Xcode 8每次都重新编译完整代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39588223/