在我升级Xcode6后尝试在iPhone模拟器中调试时,Xcode有时会崩溃 [英] Xcode sometimes crashes when I try to debug in iPhone Simulator after I upgrade Xcode6

查看:276
本文介绍了在我升级Xcode6后尝试在iPhone模拟器中调试时,Xcode有时会崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发iPhone应用程序并且大部分时间都在使用iPhone模拟器。
当我尝试在iPhone模拟器中调试我的一个项目(无论什么类型和操作系统版本)进行调试时,Xcode有时会突然崩溃。

I am developing an iPhone app and using iPhone Simulator most of the time. When I try to debug one of my project in iPhone Simulator(does not matter what type and OS version) for debugging, Xcode sometimes suddenly crashes.

之后发生此错误,更改代码只需一行并重新编译解决崩溃,但如果我不重新编译项目,当我尝试在iPhone模拟器中调试项目时Xcode6总是崩溃。然后,在继续编程一段时间后,发生同样的崩溃。

After this error happens, changing code just one line and recompiling solves crash, but Xcode6 always crashes when I try to debug the project in iPhone Simulator if I don't recompile the project. Then, after continuing programming for a while, same crash happens.

我可能会发现崩溃的原因,即签名日期和上次修改日期的差异,另一个话题,但我不确定如何解决它。 (这个人因为Xcode5而说,但是当我在小牛队使用Xcode5时从未发生过。)
在Xcode for Mac中编译和链接Python的C扩展

I might found the reason of crash, which is difference of the signing date and last modification date, from an another topic, but I'm not sure how to approach solving it. (The person said because of Xcode5, but It had never happened when I was using Xcode5 on Mavericks though.) Compiling and linking C extension for Python in Xcode for Mac

项目的工作区嵌套了几个静态库项目,所以我怀疑这是因为编辑嵌套库代码,但是当我只编辑主程序代码时也发生了这种情况。

The workspace of the project has nested several static libraries projects, so I suspected that it's because of editing nested library code, but it was also happened when I editing only main program code.

这种崩溃并不总是发生,所以很难解决我的错误。
项目的工作空间有点大,所以如果可能的话,我想避免创建新的工作空间。
我真的很感激有人帮忙。

This crash is not always happen, so hard to solve what is wrong for me. The workspace of the project is kind of huge, so I would like to avoid creating new workspace if it is possible. I really appreciate someone helps.

这是崩溃报告。

Crashed Thread:  25  Dispatch queue: DBGLLDBLauncher Serial Queue

Exception Type:  EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes: 0x0000000000000032, 0x00000001359eb000

kernel messages:
-2 sec              CODE SIGNING: cs_invalid_page(0x1359eb000): p=21345[Xcode] final status 0x1000200, denying page sending SIGKILL
-2 sec              CODE SIGNING: process 21345[Xcode]: rejecting invalid page at address 0x1359eb000 from offset 0x1f3e000 in file "**PATH_OF_EXECUTABLE_FILE**" (cs_mtime:1412141335.0 == mtime:1412141335.0) (signed:1 validated:1 tainted:1 wpmapped:0 slid:0)

VM Regions Near 0x1359eb000:
    MALLOC_LARGE           0000000131224000-0000000133aad000 [ 40.5M] rw-/rwx SM=PRV  
--> mapped file            0000000133aad000-0000000136336000 [ 40.5M] r--/rwx SM=COW  
    MALLOC_LARGE           0000000136336000-0000000137690000 [ 19.4M] rw-/rwx SM=PRV 


推荐答案

我最近开始遇到这个问题。尝试了一系列修复它的事情,包括重新安装Xcode(如Apple的Crash Reporter对话框建议),重置模拟器,清理构建,清理DerivedData文件夹等等。变得绝望,我实际上研究了崩溃报告。

I started running into this problem recently. Tried without success a range of things to fix it including reinstalling Xcode (as Apple's Crash Reporter dialog suggests), reset the Simulator, clean build, clean DerivedData folder, etc. Getting desperate, I actually studied the crash report.

为我修复它的线索就在那里:

The clue to fixing it for me lay there:

Thread 24 Crashed:: <DBGLLDBSessionThread (pid=7926)>
...
14  com.apple.dt.dbg.DebuggerLLDB   ... -[DBGLLDBSession _createBreakpointFromFileBreakpoint:] + 254
...

LLDB正在尝试在崩溃时创建一个断点。因此,我在Xcode中重新运行项目之前删除了Xcode中的所有断点,现在它可以工作。

LLDB is trying to create a breakpoint at the time it crashes. So, I deleted all my breakpoints in Xcode before re-running the project in the Simulator and now it works.

(你没有发布足够的崩溃报告给看看你的情况发生了什么,所以你的里程可能会有所不同。)

(You didn't post enough of your crash report to see what happened in your case, so your mileage may vary.)

这篇关于在我升级Xcode6后尝试在iPhone模拟器中调试时,Xcode有时会崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆