我何时以及为什么应该清理 XCode 中的构建 [英] When and why should I clean the build in XCode

查看:27
本文介绍了我何时以及为什么应该清理 XCode 中的构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每隔一段时间,解决 XCode 中一个加重问题的方法是点击 Product → Clean,这似乎清除了一些缓存,问题消失了.

Every once in awhile, the solution to an aggravating problem in XCode is to hit Product → Clean, and this seems to clear some cache and problems disappear.

但它实际上在做什么?更重要的是,我什么时候应该这样做?在处理 Core Data 时似乎更需要这样做,但我并没有真正跟踪它.

But what is it actually doing? And more importantly, WHEN should I be doing this? It seems to be necessary more often when dealing with Core Data, but I haven't really been tracking it.

作为一个附带问题,为什么需要这样做?XCode 似乎在后台做了很多事情(自动保存、自动编译等).为什么这也不会发生在后台?

As a side question, WHY is this necessary? XCode seems to do a lot of stuff in the background (autosave, autocompile, etc). Why doesn't this also just happen in the background?

推荐答案

我几乎可以肯定 XCode 会失去对事物的跟踪,有时它不会重新编译(或链接,不确定)所有需要的东西.我必须最频繁地进行清理和构建.也许只是我,但我对此表示怀疑...... XCode 是我使用过的大多数错误的 IDE

I am almost certain that XCode loses track of things and sometimes it doesn't recompile (or link, not sure) everything is needed. I have to resort to clean and build all most often than it should. Maybe it's just me, but I doubt it... XCode is the IDE with most bugs I have worked with

这篇关于我何时以及为什么应该清理 XCode 中的构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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