ios - Xcode 8每次都重新编译完整代码

标签 ios xcode

随着代码的任何更改(尽管文件不在 .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)


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

enter image description here “Build Setting”选项卡 -> “C Language Dialect” -> 将其更改为“Compiler Default”。

For reference :

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/

相关文章:

ios - 从标签栏 Controller 分支出来?

iphone - iOS - 自动缩小带有属性文本的 UILabel

iphone - iPad Storyboard无法正常工作

ios - 如何使用约束在 TableView 单元格之间创建空间?

ios - 如何防止设备旋转时键盘消失?

ios - 他们是否在 iOS 11 中向 UITableVIew 添加了更多填充?

ios - 单击一段 UISegmentedControl 后显示多行文本,但最初不显示 - 更新代码

ios - Apple 开发者证书 - 备份什么

ios - 是否可以在iOS中检查用户是否给予(评分和评论)

ios - Xcode 4 Storyboard,不想连接到 IBOutlet 的文本字段