1. 程式人生 > >xcode模擬器執行僵死

xcode模擬器執行僵死

之前在xcode的模擬器上執行程式時,總是出現error: failed to attach to process ID XXXX 的錯誤,在網上查到,將debugger從lldb換到gdb即可,edit Scheme->debugger->選擇GDB。

但今天在xcode4.5上執行程式時,xcode僵死在attaching to your app 的連線過程中,在網上查資料後,說將debugger切換到lldb模式即可正常執行。這實在讓我很抓狂。。。,lldb模式,模擬器出現error: failed to attach to process ID的錯誤,gdb和none模式出現模擬器僵死的情況。

最後在網上找到一個方法,

Open only XCode without opening project -> Go to Window -> Organizer -> [ProjectName] and delete it completely -> Quit XCode -> Open iPhone simulator and reset settings -> Quit iPhone simulator -> reboot Mac -> reopen XCode and run application

照這個方法,程式終於可以在lldb模式下運行了,問題解決,哦耶~~~