简体   繁体   English

为什么我在情节提要(Xcode)中所做的更改未反映在我的应用程序上?

[英]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. 我将列出一些修复程序,尽管其中一些您已经尝试过。

  1. Clean and rebuild. 清理并重建。
  2. Quit xCode, delete derived data folder. 退出xCode,删除derived data文件夹。 Deploy again. 再次部署。
  3. Delete the app from your device. 从您的设备中删除该应用。
  4. The storboard that you are making changes to, is not the one that is being used in the app. 您要更改的模板不是应用程序中正在使用的模板。

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.

相关问题 Swift XCode-情节提要中的更改未反映在iPhone模拟器中 - Swift XCode - Changes in storyboard aren't being reflected in the iPhone simulator 为什么Xcode Storyboard中所做的更改未反映在Simulator / Device上? - Why are the changes made in Xcode Storyboard not getting reflected on Simulator / Device? 为什么仅仅在XCode 5中查看我的Storyboard会毁了我的应用程序? - Why does simply looking at my Storyboard in XCode 5 ruin my app? 为什么我的数据没有从故事板传递到 Xcode 目标 c 中的 xib 文件? - Why is my data not being passed from storyboard to xib file in Xcode objective c? Xcode 4 for Dummies:为什么在应用程序运行时未应用情节提要板设置? - Xcode 4 for Dummies: Why are Storyboard Settings not Being Applied When the App Runs? 为什么我的导航项/栏从Xcode 9中的情节提要中消失了 - why my navigation item / bar disappear from my storyboard in Xcode 9 为什么在Xcode 8 + 9中,故事板对我所有的应用程序都是透明的? - Why has storyboard gone transparent for all my apps, in Xcode 8 + 9? 运行我的应用程序时,情节提要板更改不会更新 - Storyboard changes won't update when running my app 为什么我可以访问Storyboard_a.storyboard并且无法访问我框架中的Storyboard_b.storyboard? - Why can I reach Storyboard_a.storyboard and fail to reach Storyboard_b.storyboard in my framework? XCode:为什么我的活动没有被添加到日历中? - XCode: Why is my event not being added to the calendar?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM