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
4

2 に答える 2

1

私もその問題を抱えていました。プロジェクトの情報 plist ファイルには、「メイン nib ファイル ベース名 (iPad)」を「MainWindowForiPad」に設定し、「メイン nib ファイル ベース名 (iPhone)」を「MainWindowForiPhone」に設定するというキーがありました。解決策は、3 つ目の MainWindow キー「Main nib file base name」を追加することでした。これも「MainWindowForiPhone」に設定しました。

Kim が前の回答で述べたように、iPodTouch は iPhone のキーに関連付けられた MainWindow nib をロードせず、一般的なキー "Main nib file base name" の下で MainWindow をロードします。

于 2011-03-11T15:24:06.290 に答える
0

plistfile で、起動時にロードする 2 つの .nib ファイルを指定している可能性があります。1 つは iPad 用、もう 1 つは iPhone 用です。iPod touch を実際にロードするには、独自の nib ファイルが必要です。

iPod Touch 4Gを見て 、iPadだと思っている

于 2011-03-10T14:31:26.460 に答える