即使 bug 已修复,iPhone 模拟器也会停止工作

发布于 2024-09-25 03:34:36 字数 179 浏览 5 评论 0原文

这种情况已经发生过好几次了。

应用程序工作正常。 然后我选择了错误的代表来查看 应用程序不起作用(预期) 所以我为视图选择了正确的代表 应用程序仍然无法工作/加载(虽然应该可以工作) 退出 Xcode 并返回仍然无法解决问题。 唯一要做的就是删除该项目并重新创建它

有人遇到同样的问题,有关于如何修复它的线索吗?

This has happened quite a few times.

Application working fine.
Then I chose a wrong delegate for a view
Application did not work (expected)
So I chose the right delegate for the view
Application still not work / load (should have worked though)
Quiting Xcode and returning still doesn't fix it.
Only thing to do is delete the project and recreate it

Anyone faced the same problem, any clues on how to fix it ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

趁年轻赶紧闹 2024-10-02 03:34:36

我可能猜测的是,iPhone模拟器中的应用程序存储了一些状态(例如:存档),然后每次您尝试再次加载应用程序时,它都会尝试使用保存的状态。由于保存的状态在某些方面会崩溃,因此即使您使用新代码升级应用程序,您的应用程序通常也会崩溃

您可以尝试的唯一方法是从模拟器中删除应用程序并重新安装它

What I can possibly guess is that your app in iphone simulator store some state (for example: archiving) and then everytime you try to load the app again, it tries to used the saved state. Because the saved state is crashed in some ways, it is usual that your app will always crash, even you upgrade your app with new code

The only way you can try is to delete your app from simulator and reinstall it

只是偏爱你 2024-10-02 03:34:36

看来您可能以某种方式破坏了 nib 文件。如果不是太复杂,我建议创建一个新的笔尖并再次设置您的委托。

Seems likely you've broken the nib file in some way. If it's not too complex, I'd suggest creating a fresh nib and setting your delegate again.

娇纵 2024-10-02 03:34:36

只是继续 Vodkhang 所说的情况。
然后从构建菜单中执行清理/清理所有目标。
或删除应用程序而不是项目..

Just to continue what Vodkhang saying is the case..
then do the Clean/Clean all Targets from the Build menu.
or delete the application NOT project..

暖树树初阳… 2024-10-02 03:34:36

有时值得从模拟器中卸载应用程序(在模拟器中,单击并按住并点击“X”)。

Sometimes it's worth uninstalling the app from the simulator (In the simulator, click-and-hold and tap the "X").

彡翼 2024-10-02 03:34:36

我知道出了什么问题了。

当我将文件所有者指定为 UINavigationItem 的委托时,“AppDeleagate”停止指向文件所有者。当我将 AppDeledate 委托重置为文件所有者时,它工作正常。

这个链接帮助我弄清楚了。
http://forums.macrumors.com/showthread.php?t=377383

谢谢大家的帮助:)

I figured out what was wrong.

When I assigned Files Owner as the delegate to UINavigationItem the "AppDeleagate" stopped pointing to the Files Owner. When I reset the AppDeledate delegate to be Files Owner, it worked fine.

This link helped me figure it out.
http://forums.macrumors.com/showthread.php?t=377383

Thank you all, for your help :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文