2011-03-09 4 views
0

범용 애플리케이션 (대상 장치 제품군 -> iphone/ipad)을 만들고 있습니다. 그것은 아이폰과 ipad에서 완벽하게 잘 동작하지만, iPod touch와 관련해서는 아무런 경고 나 오류가 없으며 xcode가 실행 중임을 보여 주지만 iPod touch의 화면이 검게 변합니다.유니버셜 iOS 이진이 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 
+0

"Build and Run"을 얼마나 오래 기다렸습니까? 또한 '중지'를 클릭 한 후 앱 아이콘을 클릭하면 어떻게됩니까? – Moshe

+0

일반 응용 프로그램이 건물에서 실행되는 것처럼 작동합니다. 다시 검은 색 화면으로 바뀝니다. –

+0

빌드를 청소하고, 장치를 다시 시작하고 xcode를 다시 시작하는 것이 좋습니다. Xcode 4.0을 사용하고 있습니까? – Robert

답변

0

그것은 당신이 당신의 plistfile에 출시에로드 할 두 .nib 파일을 지정했다고 아마도. 하나는 iPad 용이고 다른 하나는 iPhone 용입니다. 아이팟 터치 실제로로드하려면 자체 nib 파일이 필요합니다.

나도 그 문제가 있었다 iPod Touch 4G thinks it's an iPad

1

에서 살펴 보자. 프로젝트의 정보 plist 파일에는 "Main nib file base name (iPad)"이 "MainWindowForiPad"로 설정되고 "Main nib file base name (iPhone)"이 "MainWindowForiPhone"으로 설정된 키가있었습니다. 해결책은 "MainWindowForiPhone"으로 설정 한 세 번째 MainWindow 키 "Main nib file base name"을 추가하는 것이 었습니다.

이전 답변에서 Kim이 말한 것처럼 iPodTouch는 iPhone 키와 연결된 MainWindow 펜촉을로드하지 않고 일반 키 "기본 nib 파일 기본 이름"아래에 MainWindow를로드합니다.

관련 문제