2011-02-04 7 views
1

내 문제는 이것입니다. 디버그 모드, 크래시, 메모리 오류 등에서 정상적으로 빌드되고 실행되는 앱이 있습니다. Ad-hoc 빌드를 실행하고 장치에서 실행하려고하면 주 스레드가 특정 시점에 충돌합니다. 뚜렷한 이유 ... 나는 장치 로그가 이렇게입니다에서 얻을 관리 스택 추적 ...Ad-Hoc 배포판을 빌드 할 때만 응용 프로그램이 다운 됨

0 libSystem.B.dylib    0x30d7c2d4 __kill + 8 
1 libSystem.B.dylib    0x30d7c2c4 kill + 4 
2 libSystem.B.dylib    0x30d7c2b6 raise + 10 
3 libSystem.B.dylib    0x30d90d72 abort + 50 
4 libstdc++.6.dylib    0x34981a20 __gnu_cxx::__verbose_terminate_handler() + 376 
5 libobjc.A.dylib     0x34a83594 _objc_terminate + 104 
6 libstdc++.6.dylib    0x3497fdf2 __cxxabiv1::__terminate(void (*)()) + 46 
7 libstdc++.6.dylib    0x3497fe46 std::terminate() + 10 
8 libstdc++.6.dylib    0x3497ff16 __cxa_throw + 78 
9 libobjc.A.dylib     0x34a824c4 objc_exception_throw + 64 
10 CoreFoundation     0x3587a7c2 +[NSException raise:format:arguments:] + 62 
11 CoreFoundation     0x3587a7fc +[NSException raise:format:] + 28 
12 QuartzCore      0x31071222 CALayerSetPosition(CALayer*, CA::Vec2<double> const&, bool) + 134 
13 QuartzCore      0x31071190 -[CALayer setPosition:] + 32 
14 UIKit       0x341e4378 -[UIView(Geometry) setCenter:] + 16 
15 MyApp       0x00012b2c 0x1000 + 72492 
16 MyApp       0x0001276a 0x1000 + 71530 
17 UIKit       0x341e3270 -[UIViewController view] + 104 
18 UIKit       0x341efd04 -[UIViewController contentScrollView] + 16 
19 UIKit       0x341efb74 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24 
20 UIKit       0x341efa72 -[UINavigationController _layoutViewController:] + 18 
21 UIKit       0x341ef4cc -[UINavigationController _startTransition:fromViewController:toViewController:] + 248 
22 UIKit       0x341ef358 -[UINavigationController _startDeferredTransitionIfNeeded] + 176 
23 UIKit       0x341e30be -[UINavigationController pushViewController:transition:forceImmediate:] + 634 
24 UIKit       0x341e2e34 -[UINavigationController pushViewController:animated:] + 28 
25 MyApp       0x00004f80 0x1000 + 16256 
26 UIKit       0x3420b834 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 656 
27 UIKit       0x342cb60c -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 124 
28 Foundation      0x31181df6 __NSFireDelayedPerform + 362 
29 CoreFoundation     0x3583109c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 8 
30 CoreFoundation     0x35830b54 __CFRunLoopDoTimer + 844 
31 CoreFoundation     0x358021ae __CFRunLoopRun + 1082 
32 CoreFoundation     0x35801c80 CFRunLoopRunSpecific + 224 
33 CoreFoundation     0x35801b88 CFRunLoopRunInMode + 52 
34 GraphicsServices    0x320c84a4 GSEventRunModal + 108 
35 GraphicsServices    0x320c8550 GSEventRun + 56 
36 UIKit       0x341dc322 -[UIApplication _run] + 406 
37 UIKit       0x341d9e8c UIApplicationMain + 664 

다른 정말 이상한 것은 당신이 응용 프로그램을 닫고 경우에 (충돌 후) 실행을 중지한다는 것입니다 배경은 다음 그것을 다시 시작, 거의 즉시 내가 믿기 리드 해요

<Warning>: Application 'MyApp' exited abnormally with signal 11: Segmentation fault 

는 메모리 액세스 에러 (초기화되지 않은 메모리 액세스)입니다 ... 인용 밖으로 보석금. 나는

어떤 생각이나 도움은 대단히 감사하겠습니다 :)

+0

을, 발견 솔루션인가요? –

답변

2

이런 말하기 힘들지만 ... 포인터 또는 아무것도 내가 추정 할 수있는 모든이가 CF 라이브러리에 문제가 있다는 것입니다 미친 아무것도 아니에요 정확하게 대답이 무엇인지 더 알지 못하고 있지만, 내 첫 번째 추측은 UIViewcenter 속성에 잘못된 값을 제공하고 있다는 것입니다.

답을 찾는 데 도움이 될 수있는 두 가지 정보가 누락되었습니다.

먼저, 스택 추적에서이 같은 라인 symbolicated해야

:

15 MyApp       0x00012b2c 0x1000 + 72492 
16 MyApp       0x0001276a 0x1000 + 71530 

당신이 그것을 추적하는 데 도움이됩니다 두 라인에서 어떤 일이 일어나고 있는지를 아는, 그리고 던져진 어떤 예외를 알고 (시작 스택 트레이스의 11 번째 줄에) 포함하면 더 도움이 될 것입니다. Xcode의 Organizer에서 장치의 콘솔 출력을보고이 정보를 얻을 수 있습니다.

AdHoc 배포를 위해 앱을 빌드 할 때 생성 된 dSYM 파일이있는 경우 오류 보고서를 나타낼 수 있습니다. 충돌 보고서를 Xcode의 Organizer 창으로 끌면 자동으로 기호가 표시됩니다. 그래도 작동하지 않는다면 symbolicatecrash 스크립트를 직접 사용해보십시오. 그것은 다음과 같은 경로에 자리 잡고있어 :

/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash

그래서
관련 문제