2012-07-27 4 views
38

xcode에서 .crash 파일에 대한 기호를 얻는 방법이 잘 못되었습니다.iOS .crash 파일에 대한 기호를 얻으려고 시도합니다.

.crash 파일, .app 파일, .ipa 파일 및 .dSYM 파일이 있습니다. 충돌 로그를 xcode 구성 도우미로 드래그하면 시스템 호출을위한 심볼로 크래시 로그가 표시되지만 내 앱에는 심볼이 표시되지 않습니다.

.app/.ipa는 빌드 머신에 의해 빌드되었으므로 xcode를 통해 아카이브되지 않았습니다.

나는 세 개의 파일 (실제로 두 개는 실제로 디렉토리이지만 Mac의 파일처럼 보입니다)을 같은 폴더에 넣고 아무것도 배치하지 않았습니다. 나는이 오류가 얻을 해당 디렉토리에있는 동안 나는 명령 줄에서 symbolicatecrash를 실행 시도 :

Error: "DEVELOPER_DIR" is not defined at /Applications/Xcode.app/[snip]Resources/symbolicatecrash line 53. 

내가 /Applications/Xcode.app에 DEVELOPER_DIR 설정을 시도하고 더 얻을,하지만 지금은 오류의 슬루를 참조하는 읽기 :

sh: /Applications/Xcode.app/usr/bin/xcrun: No such file or directory 

나는 혼란 스럽습니다. 4 개의 필요한 파일이 모두 같은 디렉토리에 있으면이 방법이 더 쉬울 것이라고 생각할 것입니다.

저는 xcode 4.4를 실행 중이지만 어제 밤 4.3과 동일한 문제가 발생했습니다. 업그레이드가 도움이되기를 바랍니다.

답변

0

(죄송합니다. 내 대답은 질문을 올바르게 읽기 전에 작성되었습니다).

Xcode 설치의 올바른 위치를 설정하려면 xcode-select을 사용하십시오. 더 정확하게 :

$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer 
5

첫 세트 올바른 엑스 코드 위치 :

sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer/ 

나는이 변수를 설정하고 작업을 얻었다.

export DEVELOPER_DIR=/Applications/Xcode.app 
다음

나는이 디렉토리에 symbolicatecrash 실행 :

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources 
+1

나를 위해,이 솔루션은 효과가 있었지만 DEVELOPER_DIR =/Application/Xcode.app/Contents/Developer/ – Adri

+0

여전히 동일한 결과가있었습니다 :'sh : /Applications/Xcode.app/usr/bin/xcrun : 그러한 파일이나 디렉토리가없고 출력에 기호가 없습니다. –

+0

@Roger export DEVELOPER_DIR =/ – nduplessis

62

오른쪽 DEVELOPER_DIR 설정해야합니다 :

export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer" 

엑스 코드는 산 사자에 테스트 자본 X가 기록을 (10.8).

+0

내 Xcode 4.4는 Xcode.app입니다. –

+5

내 라이온에게 Xcode는 대문자가 아닌 작은 C 언어를 사용합니다. 내 파티션은 대소 문자를 구분하므로 중요합니다. –

+1

나를 위해 일했습니다 - 라이온을 사용하고 있습니다 – Bryan

관련 문제