2009-10-02 3 views
3

내 응용 프로그램은 Xcode를 통해 실행될 때 3.0 장치와 3.1 장치에서 정상적으로 실행되지만 iTunes를 통해 설치된 경우 3.1 장치에서 실행될 때 시작시 충돌이 발생합니다. 그것은 뒤에 어떤 충돌 로그를 남기지 않습니다,하지만 콘솔에이를두고 :iPhone 응용 프로그램이 충돌 로그없이 시작될 때 종료합니다.

Thu Oct 1 19:33:36 unknown mobile_installationd[329] <Error>: 00808e00 install_embedded_profile: Skipping the installation of the embedded profile 
Thu Oct 1 19:33:37 unknown SpringBoard[24] <Warning>: Reloading and rendering all application icons. 
Thu Oct 1 19:33:41 unknown com.apple.debugserver-43[342] <Warning>: debugserver-43 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved. 
Thu Oct 1 19:33:41 unknown com.apple.debugserver-43[342] <Warning>: Connecting to com.apple.debugserver service... 
Thu Oct 1 19:33:41 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.companyname.AppName[0x60c]) Spawned and waiting for the debugger to attach before continuing... 
Thu Oct 1 19:33:42 unknown kernel[0] <Debug>: launchd[343] Builtin profile: container (seatbelt) 
Thu Oct 1 19:33:42 unknown kernel[0] <Debug>: launchd[343] Container: /private/var/mobile/Applications/291BFBE4-F5DC-494D-B7E5-81BED01E508B (seatbelt) 
Thu Oct 1 19:33:42 unknown com.apple.debugserver-43[342] <Warning>: 1 [0156/0903]: error: ::task_for_pid (target_tport = 0x0103, pid = 343, task => 0x0000) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005) 
Thu Oct 1 19:33:42 unknown com.apple.debugserver-43[342] <Error>: error: MachTask::StartExceptionThread(): task invalid, exception thread start failed. 
Thu Oct 1 19:33:42 unknown com.apple.debugserver-43[342] <Warning>: 2 [0156/0903]: error: ::task_for_pid (target_tport = 0x0103, pid = 343, task => 0x0000) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005) 
Thu Oct 1 19:33:42 unknown com.apple.debugserver-43[342] <Warning>: 3 [0156/0903]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: 'DRHT' 
Thu Oct 1 19:33:42 unknown com.apple.debugserver-43[342] <Warning>: error: failed to launch process (null): failed to get the task for process 343 
Thu Oct 1 19:33:42 unknown com.apple.debugserver-43[342] <Warning>: 4 [0156/1603]: error: ::read (7, 0x28091c, 1024) => -1 err = Bad file descriptor (0x00000009) 
Thu Oct 1 19:33:42 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.companyname.AppName[0x60c]) Bug: launchd_core_logic.c:2649 (23909):10 
Thu Oct 1 19:33:42 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.companyname.AppName[0x60c]) Working around 5020256. Assuming the job crashed. 
Thu Oct 1 19:33:42 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.companyname.AppName[0x60c]) Job appears to have crashed: Segmentation fault 
Thu Oct 1 19:33:42 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.companyname.AppName[0x60c]) Throttling respawn: Will start in 2147483647 seconds 
Thu Oct 1 19:33:42 unknown SpringBoard[24] <Warning>: Application 'AppName' exited abnormally with signal 11: Segmentation fault 
Thu Oct 1 19:34:42 unknown SpringBoard[24] <Notice>: MultitouchHID(208ba0) uilock state: 0 -> 1 

응용 프로그램이 Default.png 파일을 가지고 있으며, 그 잠시 보여 주지만, 나는 그래서,이 스프링 보드/launchd에/이것 저것로드 할 수 있습니다 생각 나는 그것이 내가 실제로 달리고있는 표시 다라고 생각하지 않는다.

두 번째 프로젝트를 동일한 상자에 만들고 동일한 자격 증명 및 인증서를 사용하여 빌드하고 문제없이 iTunes를 빌드하고 실행합니다.

+0

설치 후 보통 얼마나 오래 앱을 시작해야합니까? 10 CPU 초 후에 앱이 자동으로 종료됩니다. – jantimon

+0

Default.png가 표시된 후 약 2 초 후에 종료되는 것으로 보입니다. 그러나 시작시에 어떤 일이 일어나는지 살펴 보겠습니다. – TALlama

답변

3

나는 Dropbox의 raw .app 파일을 넣었고, codesign -vvvv AppName.app은 Dropbox의 사본에 작업을 했는데도 테스터에 도착했을 때쯤에는 어떻게 든 변경되었다. 인증에 실패했으며 응용 프로그램이 시작되지 않았습니다. (zipping the app 최대 zip MyApp.zip -r -y MyApp.app 사용)

This blog post

이것이 원인임을 발견하는 수단이 있었고, this one 솔루션을 발견하는 수단이되었다.

2

로딩 할 때 실행하는 코드를 주석 처리하여 문제를 격리하고 앱에 기본 창 이상이로드되어 있는지 확인하십시오. 그런 다음 코드의 주석을 점차 제거하고 NSLog 문을 사용하여 초기화 된 변수의 값을 기록하십시오 (디버거를 사용하면 문제가 발생하지 않으므로 NSLog는 괜찮습니다). 모든 배경을로드하는 데 너무 많은 시간을 들여 앱이 충돌하는 경우 전용 배경을 실행하여 주 스레드에서 무거운 초기화를 유지하십시오.

관련 문제