문제

내 응용 프로그램은 Xcode를 통해 출시 될 때 3.0 장치와 3.1 장치에서 정상적으로 실행되지만 iTunes를 통해 설치할 때 3.1 장치에서 실행될 때 시작시 충돌합니다. 충돌 로그를 뒤로 남기지 않지만 이것을 콘솔에 넣습니다.

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

응용 프로그램에는 a가 있습니다 Default.png 파일과 그 순간을 보여 주지만 스프링 보드/런치/Whatnot으로로드 될 수 있다고 생각합니다.

같은 상자에 두 번째 프로젝트를 만들었고 동일한 자격 증명과 인증서를 사용하여이를 구축했으며 문제없이 iTunes를 구축하고 실행합니다.

도움이 되었습니까?

해결책

나는 빌드를 원시로 넣고 있었다 .app 그래도 Dropbox에 파일을 파일하십시오 codesign -vvvv AppName.app Dropbox의 내 쪽 사본 작업을 수행하면서 테스터에 도달 할 때까지 어떻게 든 변경되었습니다. 인증이 실패했고 응용 프로그램은 출시를 거부했습니다.

이 블로그 게시물 이것이 원인이라는 것을 발견하는 데 도움이되었고 이 하나 솔루션을 발견하는 데 도움이되었습니다 (앱을 지핑합니다 UP 사용 zip MyApp.zip -r -y MyApp.app).

다른 팁

로드 할 때 실행하는 코드를 댓글을 달아서 문제를 분리하고 앱이 최소한 기본 창을로드하고 있는지 확인하십시오. 그런 다음 점차적으로 무책임 코드를 사용하고 NSLOG 문을 사용하여 초기 변수의 값을 기록합니다 (디버거를 사용하면 문제가 발생하지 않으므로 NSLOG가 정상이라고 생각합니다). 모든 것을 선불로드하기 위해 너무 많은 시간을내어 앱이 충돌하는 것을 보면 전용 배경을 시작하여 메인 스레드에서 무거운 초기화를 유지하십시오.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top