2010-07-19 183 views
0

我的應用程序在模擬器中運行良好,並且一直在設備上運行良好。今天我試圖在設備上安裝並且應用程序崩潰。它仍然在模擬器中工作。我沒有收到調試錯誤:應用程序在設備上運行時突然崩潰

[Session started at 2010-07-19 10:35:01 -0700.] 
GNU gdb 6.3.50-20050815 (Apple version gdb-1470) (Thu May 27 05:54:06 UTC 2010) 
Copyright 2004 Free Software Foundation, Inc. 
GDB is free software, covered by the GNU General Public License, and you are 
welcome to change it and/or distribute copies of it under certain conditions. 
Type "show copying" to see the conditions. 
There is absolutely no warranty for GDB. Type "show warranty" for details. 
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys002 
Loading program into debugger… 
Program loaded. 
target remote-mobile /tmp/.XcodeGDBRemote-228-34 
Switching to remote-macosx protocol 
mem 0x1000 0x3fffffff cache 
mem 0x40000000 0xffffffff none 
mem 0x00000000 0x0fff none 
run 
Running… 
Error launching remote program: failed to get the task for process 856. 
Error launching remote program: failed to get the task for process 856. 
The program being debugged is not being run. 
The program being debugged is not being run. 

我該如何診斷?

回答

1

確保關閉模擬器,並做一個乾淨,然後構建並運行。也可能有助於徹底刪除設備上的應用程序。

1

您需要使用開發證書/供應配置文件(這應該是生成設置中的默認值)以及使用<key>get-task-allow</key><true/>(這也應該是默認值)的權利對其進行簽名。

它是否在主屏幕上運行?

+0

不從主屏幕運行。我已經用我的證書籤了字,並且已經過去了一個月。當我切換到我的開發證書時,出現錯誤:無法在引導程序服務器上註冊com.myApp.debug。錯誤:未知的錯誤代碼。這通常意味着此過程的另一個實例已在運行或掛在調試器中。程序接收到信號:「SIGABRT」。 – 2010-07-19 17:48:06

+0

重新啓動設備。 – 2010-07-20 11:53:20

+0

請參閱http://stackoverflow.com/questions/788277/iphone-strange-error-when-testing-on-simulator「無法在引導程序服務器上註冊com.myApp.debug」錯誤。 – smparkes 2012-02-09 16:23:42

相關問題