2011-03-10 37 views
5

我下載並安裝了最終版本的Xcode 4.我打開了我的iPad項目,並意識到斷點在設備上不起作用。但他們在模擬器上工作正常。
在我使用Xcode 3.2之前,一切正常。Xcode 4 final - 設備上的斷點(ipad)不起作用

我也嘗試從頭開始創建一個基於iOS應用程序的空視圖,並有完全相同的問題。我在這個問題上搜索,但所有的解決方案都是基於以前版本的Xcode。 有什麼建議我做錯了什麼?

下面是運行時,從控制檯輸出應用

Mar 10 14:34:44 unknown installd[547] : entitlement 'keychain-access-groups' has value not permitted by a provisioning profile 
Mar 10 14:34:44 unknown installd[547] : entitlement 'application-identifier' has value not permitted by a provisioning profile 
Mar 10 14:34:44 unknown SpringBoard[29] : Killing me.device-debugging-test activate: deactivate: for app installation 
Mar 10 14:34:44 unknown installd[547] : entitlement 'keychain-access-groups' has value not permitted by a provisioning profile 
Mar 10 14:34:44 unknown installd[547] : entitlement 'application-identifier' has value not permitted by a provisioning profile 
Mar 10 14:34:44 unknown SpringBoard[29] : Reloading application state for 'me.device-debugging-test' as its modification date has changed 
Mar 10 14:34:45 unknown SpringBoard[29] : Reloading and rendering all application icons. 
Mar 10 14:34:46 unknown com.apple.debugserver-48[551] : debugserver-48 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved. 
Mar 10 14:34:46 unknown com.apple.debugserver-48[551] : Connecting to com.apple.debugserver service... 
Mar 10 14:34:47 unknown com.apple.launchd[1] : (UIKitApplication:me.device-debugging-test[0x4309]) Spawned and waiting for the debugger to attach before continuing... 
Mar 10 14:34:47 unknown com.apple.debugserver-48[551] : Got a connection, waiting for debugger instructions for task "(null)". 
Mar 10 14:34:47 unknown kernel[0] : lockbot[544] Builtin profile: debugserver (sandbox) 
Mar 10 14:34:47 unknown kernel[0] : launchd[552] Builtin profile: container (sandbox) 
Mar 10 14:34:47 unknown kernel[0] : launchd[552] Container: /private/var/mobile/Applications/(...) [69] (sandbox)

回答

12

重啓設備。

簡短,甜美,簡單的解決方案。 經過數小時的時間,挖掘了所有的XCode選項。

+0

哇,它的工作原理! :D我重新安裝了Xcode4並重新啓動了我的Mac - 它修復了Xcode崩潰,比重新啓動我的iPad並且現在調試工作正常。謝謝! – BamboOS 2011-03-14 08:59:17

+0

自從切換到XCode 4以來,我一直在想這個問題的答案。斷點似乎有時會起作用,而在其他時候則不行。 :(但是,你的答案也適用於我,謝謝!另外一個說明,斷點在模擬器上工作,但我更喜歡在設備上運行應用程序 – Sam 2011-03-15 19:56:40

+0

自從Xcode升級到4.3後,我遇到了同樣的問題,模擬器正在點擊而不是iPad,iPad的重新啓動對我來說很有效,真正簡單的甜蜜和短暫的解決方案。 – mask 2012-08-29 18:08:05