[英]Xcode is not running updated code on the simulator or a connected physical device
I'm in the process of adding features to my app but whenever I run the app on iPad simulators or a connected physical device, none of my updated code appears.我正在向我的应用程序添加功能,但是每当我在 iPad 模拟器或连接的物理设备上运行应用程序时,我的更新代码都不会出现。 I have tried:我努力了:
Cleaning the build folder清理构建文件夹
Deleting the derived data folder删除派生数据文件夹
Rebooting the simulator重启模拟器
Relaunching XCode重新启动 XCode
Rebooting my computer重新启动我的电脑
Deleting the offending portions of my storyboard and code and删除我的 storyboard 和代码的违规部分和
re-typing them重新输入它们
Resetting all content and settings and rebooting the simulator重置所有内容和设置并重新启动模拟器
So far nothing has worked.到目前为止,没有任何效果。 What else should I try?我还应该尝试什么?
I figured out the issue.我弄清楚了这个问题。 The text contained within the text view as attributed and would not update until I updated the attributed string in the view controller.文本视图中包含的文本作为属性,并且在我更新视图 controller 中的属性字符串之前不会更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.