通用 iOS 二进制文件无法在 iPod touch 上运行

发布于 2024-10-21 01:38:06 字数 1096 浏览 4 评论 0原文

我正在制作一个通用应用程序(目标设备系列 --> iphone/ipad)。它在 iphone 和 ipad 上工作得很好,但当涉及到 iPod touch 时,我没有收到任何警告或错误,并且我的 xcode 显示它正在运行,但我的 iPod touch 的屏幕变成黑色。

我不明白为什么它会这样。有什么想法吗?

我的控制台输出是:

[Session started at 2011-03-09 17:59:01 +0500.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Fri Oct 22 04:12:10 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-25686-91
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11523]
[Switching to thread 11523]
sharedlibrary apply-load-rules all
continue

I am making a universal application (targeted device family --> iphone/ipad). It works perfectly fine in iphone and ipad but when it comes to iPod touch, I get no warnings or errors and my xcode shows it is running, but my iPod touch's screen turns into black.

I dont understand why it is behaving like that. Any ideas?

My console output is:

[Session started at 2011-03-09 17:59:01 +0500.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Fri Oct 22 04:12:10 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-25686-91
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11523]
[Switching to thread 11523]
sharedlibrary apply-load-rules all
continue

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

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

发布评论

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

评论(2

路弥 2024-10-28 01:38:06

我也有这个问题。在项目的信息 plist 文件中,我有以下键:“主笔尖文件基本名称 (iPad)”设置为“MainWindowForiPad”,“主笔尖文件基本名称 (iPhone)”设置为“MainWindowForiPhone”。解决方案是添加第三个 MainWindow 键“Main nib file base name”,我也将其设置为“MainWindowForiPhone”。

就像 Kim 在之前的回答中所说的那样,iPodTouch 不会加载与 iPhone 按键关联的 MainWindow nib,它会在通用按键“Main nib 文件基本名称”下加载 MainWindow。

I had that problem, too. In the project's info plist file I had keys: "Main nib file base name (iPad)" set to "MainWindowForiPad" and "Main nib file base name (iPhone)" set to "MainWindowForiPhone". The solution was to add a third MainWindow key "Main nib file base name", which I set to "MainWindowForiPhone" also.

Like Kim said in the previous answer, the iPodTouch does not load the MainWindow nib associated with the iPhone's key, it loads the MainWindow under general key "Main nib file base name".

淡墨 2024-10-28 01:38:06

您可能在 plistfile 中指定了在启动时加载的两个 .nib 文件。一款适用于 iPad,一款适用于 iPhone。 ipod touch 实际上需要加载自己的 nib 文件。

看看
iPod Touch 4G 认为它是 iPad

It is probably that you in your plistfile have designated the two .nib files to load on launch. One for the iPad and one for the iPhone. The ipod touch actually needs its own nib file to load.

Take a look at
iPod Touch 4G thinks it's an iPad

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