启动画面在调试模式下出现,但在发布模式下不出现 (iOS4)

发布于 2024-09-08 07:04:28 字数 248 浏览 2 评论 0原文

我有 iPhone 3GS、iOS4、xcode 3.2.3。

加载 Default.png 后,我添加了一个小启动屏幕,看起来与应用程序启动视图完全相同。 此启动屏幕在调试模式下显示动画,但在发布模式下根本不显示(我得到一个空白屏幕),这当然排除了图像的任何问题,例如大小或名称。 我已经尝试清理所有目标,但没有运气,我还尝试使发布配置看起来与调试配置完全相同(例如在复制和优化级别期间剥离调试符号),以便进行故障排除,我无处可去。

有什么想法吗?

I have iPhone 3GS, iOS4, xcode 3.2.3.

After loading the Default.png, I add a little splash screen the looks exactly like the application start view.
This splash screen appears animating in Debug mode, but do not show at all in Release mode(I get a blank screen), this of course rules out any problems with the image, like size or name.
I have tried clean all targets, no luck, I also tried to make the release configuration to look exactly like the debug configuration (like strip debug symbols during copy and optimization level) for the sake of troubleshooting, I am going no where.

Any ideas?

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

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

发布评论

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

评论(2

挽梦忆笙歌 2024-09-15 07:04:28

检查您的复制资源构建阶段,看看 Default.png 是否在其中。也许它已被删除,但手机正在使用缓存的图像(由于没有清理您的构建),从而给您错误的指示,表明它正在调试。

要进行测试,请完全清理所有构建并运行调试,或者仅检查是否正在复制 Default.png。

Check your copy resources build phase to see if the Default.png is in there. Perhaps it has been deleted but the phone is using a cached image (due to not cleaning your build) thus giving you false indication that it is working on Debug.

To test, fully clean all builds and run debug, or just check that Default.png is being copied over.

慢慢从新开始 2024-09-15 07:04:28

好的,解决了。感谢 coneybeare 的提示。

该问题与“调试”或“发布”模式无关,我仅在“发布”下进行了清理,但在“调试”下没有进行清理。当我对两种模式都完成后,我从两种模式中得到了相同的行为。
由于闪屏在调试状态下工作(在进行全部清理之前),我倾向于忽略我的代码。现在,我必须再次查看我的代码,我发现 [window makeKeyAndVisible] 在之前的修改过程中被删除,因此,启动屏幕视图没有显示。

Ok, Solved. Thanks for coneybeare for the hints.

The problem had nothing to do with Debug or Release mode, I made a clean all only under Release but not under Debug. When I have done it for both, I got the same behavior from both modes.
Because of the fact that the splash screen was working under Debug (before doing a clean all), I tended to overlook my code. Now, I had to look again into my code, I figured out that [window makeKeyAndVisible] was removed during previous modifications, and thus, the splash screen view was not showing.

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