[英]Why are the changes I make in my Storyboard (Xcode) not being reflected on my app?
I've been working on an app recently but I ran into an annoying issue. 我最近一直在开发应用程序,但遇到了一个令人讨厌的问题。 None of the changes I've been making to my storyboard have been reflected on my iPhone (which is being used instead of the simulator). 我对情节提要板所做的任何更改都没有反映在我的iPhone(正在代替模拟器使用)上。
I've already tried a lot of things such as cleaning the build folder, deleting provisioning profiles, deleting the app on my phone and rebooting it, etc. Any ideas on what else I could do to fix it, or what's causing all of this? 我已经尝试了很多事情,例如清理构建文件夹,删除配置文件,删除手机上的应用程序并重新启动等等,关于如何解决该问题或导致这些问题的任何想法?
Thanks 谢谢
(Sorry if it sounds a bit unclear, I just have a hard time describing it) (抱歉,听起来有点不清楚,我很难描述它)
There could be a myriad of reasons why this could be happening, some of which can be indeterministic in nature. 发生这种情况的原因可能有多种,其中某些原因本质上是不确定的。
I'll just list a few fixes down, although some of these you've already tried. 我将列出一些修复程序,尽管其中一些您已经尝试过。
derived data
folder. 退出xCode,删除derived data
文件夹。 Deploy again. 再次部署。 I think the last one might be related to you. 我认为最后一个可能与您有关。 (or whatever changes that you are making, get overwritten by something other code in the app.) (或您所做的任何更改,都会被应用程序中的其他代码覆盖。)
As mentioned answer above is correct, 如上所述,答案是正确的,
However, The main reason of occurring these issues is of cache memory. 但是,发生这些问题的主要原因是高速缓存。 As we work and manage lots of things via xcode. 当我们通过xcode工作和管理很多事情时。 Xcode manage all their stuff, so after lot of working there are some cases happened(like: internal source engine crashed for some reason) when our changes are not reflected in the form of output and the reason is made because of cache and derived data are recalled. Xcode管理所有东西,所以在大量工作之后,发生了某些情况(例如:由于某种原因内部源引擎崩溃),当我们的更改未反映在输出形式中,原因是由于缓存和派生数据召回。 As mentioned the steps, these will again reset and clear the cache and on working with xcode editor your work will reflected correctly. 如上所述,这些步骤将再次重置并清除缓存,并且在使用xcode编辑器时,您的工作将正确反映。
It will be a best practice to delete all your derived data and module cache once in a week so there will be no issue occurred during your critical workload. 最佳做法是每周一次删除所有派生数据和模块缓存,这样在关键工作负载期间不会出现任何问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.