2011-10-14 3 views
4

iOS 5 및 Xcode 4.2로 업데이트 한 후 Xcode는 더 이상 실행 완료시 "Program ended with exit code: #"을 인쇄하지 않습니다. 다른 사람이이 사실을 알았습니까? 다시 사용할 수있는 방법이 있습니까? 테스트 통과 여부를 결정하기 위해이 출력에 의존하는 자동화 된 테스트 도구가 있으므로 다시 가져 오는 것이 좋습니다.Xcode 4.2는 종료 코드를 출력하지 않습니다?

업데이트 : 자세히 살펴 보았습니다.이 문제는 더 심각한 문제인 것으로 보입니다. 앱을 실행할 때마다 이탈시 세분화 오류로 인해 충돌이 발생하는 것처럼 보입니다. 경우에 따라 종료 코드가 인쇄되기 직전에 표시되기도하고 때로는 종료 코드 메시지가 일관성없이 표시되는 경우도 있습니다. Xcode 디버그 출력에는 아무 것도 없지만 장치의 콘솔에 seg 오류 메시지가 나타납니다.

답변

3

나는 이것 역시 알아 차렸다. 엑스 코드 4.1 (tty /dev/ttys000) gdb는 다음과 같이 시작되었는지 보인다 :

This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000 

그러나 엑스 코드 4.2

- 없음 tty /dev/ttys000 :

This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all 

이이 당신이 명령에서 다음을 수행 할 수 있습니다 해결하려면 줄 (Terminal.app/iTerm/etc) :

echo 'tty /dev/ttys000' >> ~/.gdbinit 
# Or, put it into the global gdb config: 
# echo 'tty /dev/ttys000' >> /etc/gdb.conf 

그런 다음 Xcode를 다시 시작하면 종료 코드가 다시 나타납니다. !


는 엑스 코드 4.2의 GDB 래퍼 4.1

[ 13:29 [email protected]/]$ ls -l /Developer/Library/Xcode/PrivatePlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB /Developer-4.2/Library/Xcode/PrivatePlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB 
-rwxrwxr-x 1 root admin 351936 Sep 20 13:23 /Developer/Library/Xcode/PrivatePlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB 
-rwxrwxr-x 1 root admin 353776 Oct 8 14:21 /Developer-4.2/Library/Xcode/PrivatePlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB 

[ 13:33 [email protected]/]$ ls -l /Developer/Library/Xcode/PrivatePlugIns/DebuggerGDB.ideplugin/Contents/MacOS/DebuggerGDB /Developer-4.2/Library/Xcode/PrivatePlugIns/DebuggerGDB.ideplugin/Contents/MacOS/DebuggerGDB 
-rwxrwxr-x 1 root admin 1976144 Sep 20 13:23 /Developer/Library/Xcode/PrivatePlugIns/DebuggerGDB.ideplugin/Contents/MacOS/DebuggerGDB 
-rwxrwxr-x 1 root admin 1948240 Oct 8 14:21 /Developer-4.2/Library/Xcode/PrivatePlugIns/DebuggerGDB.ideplugin/Contents/MacOS/DebuggerGDB 
+0

감사 이후 변경된 것 같습니다! 그게 완벽하게 작동합니다. – Jeff

+0

불행히도이 진술서를 철회해야합니다. 처음에 그것은 작동하는 것처럼 보였지만 지금은 일관성이없는 것처럼 보입니다. 경우에 따라 종료 코드가 나타나기도하고 때로는 종료 코드가 나타나기도합니다. 다른 아이디어? – Jeff

+0

@Jeff 이것을'echo 'tty/dev/ttys000 >> >>/etc/gdb.conf와 같이 글로벌 gdb 설정에 넣으십시오. – chown