关于XCode5打开工程闪退的一种解决方案
今天同事遇到一个问题,是关于xcode5打开工程文件一直闪退的问题。后来查看了一下崩溃日志。有如下描述:
xception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 5A1412
ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-3532/Framework/Classes/Protocols/DVTInvalidation.m:243
Details: <IDESourceControlCredentialsValidator, 0x7faec5e3c9b0> was never invalidated.
Backtrace for allocation (if _creationBacktrace is set):
(null)
Object: <IDESourceControlCredentialsValidator: 0x7f86dceeb080>
Method: -dealloc
Thread: <NSThread: 0x7f86d8414c80>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x000000010e3a1188 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x000000010d137655 _DVTAssertionHandler (in DVTFoundation)
2 0x000000010d137984 _DVTAssertionFailureHandler (in DVTFoundation)
3 0x000000010d20c6a6 _DVTInvalidation_DeallocSuper (in DVTFoundation)
4 0x000000010e33e2a3 -[IDESourceControlSSLAuthenticationWindowController .cxx_destruct] (in IDEKit)
5 0x00007fff8c00bfcc object_cxxDestructFromClass(objc_object*, objc_class*) (in libobjc.A.dylib)
6 0x00007fff8c005922 objc_destructInstance (in libobjc.A.dylib)
7 0x00007fff8c005fa0 object_dispose (in libobjc.A.dylib)
8 0x000000010d161995 __DVTSetupKVODeallocAssertions_block_invoke_371 (in DVTFoundation)
9 0x00007fff865797fa -[NSResponder dealloc] (in AppKit)
10 0x00007fff864af162 -[NSWindowController dealloc] (in AppKit)
11 0x00007fff86623901 -[NSWindowController release] (in AppKit)
12 0x00007fff867595b0 -[NSAutounbinder dealloc] (in AppKit)
13 0x00007fff8c006230 (anonymous namespace)::AutoreleasePoolPage::pop(void*) (in libobjc.A.dylib)
14 0x00007fff87a0cd72 _CFAutoreleasePoolPop (in CoreFoundation)
15 0x00007fff8c52447a -[NSAutoreleasePool drain] (in Foundation)
16 0x00007fff8657a27e -[NSApplication run] (in AppKit)
17 0x00007fff8651ebd6 NSApplicationMain (in AppKit)
18 0x00007fff91f377e1 start (in libdyld.dylib)
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff903ad212 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff8a7fcb54 pthread_kill + 90
2 libsystem_c.dylib 0x00007fff8a840dce abort + 143
3 com.apple.dt.IDEKit 0x000000010e3a0a93 +[IDEAssertionHandler _handleAssertionWithLogString:reason:] + 763
4 com.apple.dt.IDEKit 0x000000010e3a12ee -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] + 1117
5 com.apple.dt.DVTFoundation 0x000000010d137655 _DVTAssertionHandler + 421
6 com.apple.dt.DVTFoundation 0x000000010d137984 _DVTAssertionFailureHandler + 322
7 com.apple.dt.DVTFoundation 0x000000010d20c6a6 _DVTInvalidation_DeallocSuper + 480
8 com.apple.dt.IDEKit 0x000000010e33e2a3 -[IDESourceControlSSLAuthenticationWindowController .cxx_destruct] + 94
9 libobjc.A.dylib 0x00007fff8c00bfcc object_cxxDestructFromClass(objc_object*, objc_class*) + 100
10 libobjc.A.dylib 0x00007fff8c005922 objc_destructInstance + 91
11 libobjc.A.dylib 0x00007fff8c005fa0 object_dispose + 22
12 com.apple.dt.DVTFoundation 0x000000010d161995 __DVTSetupKVODeallocAssertions_block_invoke_371 + 264
13 com.apple.AppKit 0x00007fff865797fa -[NSResponder dealloc] + 129
14 com.apple.AppKit 0x00007fff864af162 -[NSWindowController dealloc] + 616
15 com.apple.AppKit 0x00007fff86623901 -[NSWindowController release] + 159
16 com.apple.AppKit 0x00007fff867595b0 -[NSAutounbinder dealloc] + 51
17 libobjc.A.dylib 0x00007fff8c006230 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 464
18 com.apple.CoreFoundation 0x00007fff87a0cd72 _CFAutoreleasePoolPop + 34
19 com.apple.Foundation 0x00007fff8c52447a -[NSAutoreleasePool drain] + 154
20 com.apple.AppKit 0x00007fff8657a27e -[NSApplication run] + 736
21 com.apple.AppKit 0x00007fff8651ebd6 NSApplicationMain + 869
22 libdyld.dylib 0x00007fff91f377e1 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff903add16 kevent + 10
1 libdispatch.dylib 0x00007fff8641cdea _dispatch_mgr_invoke + 883
2 libdispatch.dylib 0x00007fff8641c9ee _dispatch_mgr_thread + 54
Thread 2:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fff903ab686 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff903aac42 mach_msg + 70
2 com.apple.CoreFoundation 0x00007fff87a0c233 __CFRunLoopServiceMachPort + 195
3 com.apple.CoreFoundation 0x00007fff87a11916 __CFRunLoopRun + 1078
4 com.apple.CoreFoundation 0x00007fff87a110e2 CFRunLoopRunSpecific + 290
5 com.apple.Foundation 0x00007fff8c501546 +[NSURLConnection(Loader) _resourceLoadLoop:] + 356
6 com.apple.Foundation 0x00007fff8c55f562 __NSThread__main__ + 1345
7 libsystem_c.dylib 0x00007fff8a7fb7a2 _pthread_start + 327
8 libsystem_c.dylib 0x00007fff8a7e81e1 thread_start + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff903ab686 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff903aac42 mach_msg + 70
2 com.apple.CoreFoundation 0x00007fff87a0c233 __CFRunLoopServiceMachPort + 195
3 com.apple.CoreFoundation 0x00007fff87a11916 __CFRunLoopRun + 1078
4 com.apple.CoreFoundation 0x00007fff87a110e2 CFRunLoopRunSpecific + 290
5 com.apple.DTDeviceKitBase 0x000000011466875a -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 164
6 com.apple.Foundation 0x00007fff8c55f562 __NSThread__main__ + 1345
7 libsystem_c.dylib 0x00007fff8a7fb7a2 _pthread_start + 327
8 libsystem_c.dylib 0x00007fff8a7e81e1 thread_start + 13
Thread 4:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fff903ad322 __select + 10
1 com.apple.CoreFoundation 0x00007fff87a50f46 __CFSocketManager + 1302
2 libsystem_c.dylib 0x00007fff8a7fb7a2 _pthread_start + 327
3 libsystem_c.dylib 0x00007fff8a7e81e1 thread_start + 13
Thread 5:: DYMobileDeviceManager
0 libsystem_kernel.dylib 0x00007fff903ab686 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff903aac42 mach_msg + 70
2 com.apple.CoreFoundation 0x00007fff87a0c233 __CFRunLoopServiceMachPort + 195
3 com.apple.CoreFoundation 0x00007fff87a11916 __CFRunLoopRun + 1078
4 com.apple.CoreFoundation 0x00007fff87a110e2 CFRunLoopRunSpecific + 290
5 com.apple.Foundation 0x00007fff8c5647ee -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 268
6 com.apple.Foundation 0x00007fff8c4fd1aa -[NSRunLoop(NSRunLoop) run] + 74
7 com.apple.GPUToolsMobileFoundation 0x0000000118afe9bb -[DYMobileDeviceManager _deviceNotificationThread:] + 132
8 com.apple.Foundation 0x00007fff8c55f562 __NSThread__main__ + 1345
9 libsystem_c.dylib 0x00007fff8a7fb7a2 _pthread_start + 327
10 libsystem_c.dylib 0x00007fff8a7e81e1 thread_start + 13
Thread 6:: CVDisplayLink
0 libsystem_kernel.dylib 0x00007fff903ad0fa __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff8a7fffe9 _pthread_cond_wait + 869
2 com.apple.CoreVideo 0x00007fff8b5872a1 CVDisplayLink::runIOThread() + 689
3 com.apple.CoreVideo 0x00007fff8b586fd7 startIOThread(void*) + 148
4 libsystem_c.dylib 0x00007fff8a7fb7a2 _pthread_start + 327
5 libsystem_c.dylib 0x00007fff8a7e81e1 thread_start + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff903ad0fa __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff8a7fffe9 _pthread_cond_wait + 869
2 com.apple.Xcode.DevToolsCore 0x0000000113436166 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 506
3 com.apple.Foundation 0x00007fff8c55f562 __NSThread__main__ + 1345
4 libsystem_c.dylib 0x00007fff8a7fb7a2 _pthread_start + 327
5 libsystem_c.dylib 0x00007fff8a7e81e1 thread_start + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff903ad0fa __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff8a7fffe9 _pthread_cond_wait + 869
2 com.apple.Xcode.DevToolsCore 0x0000000113436166 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 506
3 com.apple.Foundation 0x00007fff8c55f562 __NSThread__main__ + 1345
4 libsystem_c.dylib 0x00007fff8a7fb7a2 _pthread_start + 327
5 libsystem_c.dylib 0x00007fff8a7e81e1 thread_start + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff903ad0fa __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff8a7fffe9 _pthread_cond_wait + 869
2 com.apple.Xcode.DevToolsCore 0x0000000113436166 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 506
3 com.apple.Foundation 0x00007fff8c55f562 __NSThread__main__ + 1345
4 libsystem_c.dylib 0x00007fff8a7fb7a2 _pthread_start + 327
5 libsystem_c.dylib 0x00007fff8a7e81e1 thread_start + 13
Thread 10:
0 libsystem_kernel.dylib 0x00007fff903ad6d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8a7fdf4c _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8a7fdd13 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8a7e81d1 start_wqthread + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff903ad6d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8a7fdf4c _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8a7fdd13 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8a7e81d1 start_wqthread + 13
Thread 12:
0 libsystem_kernel.dylib 0x00007fff903ad6d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8a7fdf4c _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8a7fdd13 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8a7e81d1 start_wqthread + 13
Thread 13:
0 libsystem_kernel.dylib 0x00007fff903ad6d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8a7fdf4c _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8a7fdd13 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8a7e81d1 start_wqthread + 13
Thread 14:
0 libsystem_kernel.dylib 0x00007fff903ad6d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8a7fdf4c _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8a7fdd13 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8a7e81d1 start_wqthread + 13
Thread 15:
0 libsystem_kernel.dylib 0x00007fff903ad6d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8a7fdf4c _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8a7fdd13 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8a7e81d1 start_wqthread + 13
Thread 16:
0 libsystem_kernel.dylib 0x00007fff903ab686 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff903aac42 mach_msg + 70
2 com.apple.CoreFoundation 0x00007fff87a0c233 __CFRunLoopServiceMachPort + 195
3 com.apple.CoreFoundation 0x00007fff87a11916 __CFRunLoopRun + 1078
4 com.apple.CoreFoundation 0x00007fff87a110e2 CFRunLoopRunSpecific + 290
5 com.apple.DebugSymbols 0x00007fff8728a590 SpotlightQueryThread(void*) + 356
6 libsystem_c.dylib 0x00007fff8a7fb7a2 _pthread_start + 327
7 libsystem_c.dylib 0x00007fff8a7e81e1 thread_start + 13
Thread 17:
0 libsystem_kernel.dylib 0x00007fff903ad386 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff8a885800 nanosleep + 163
2 com.apple.CoreSymbolication 0x00007fff8fee2358 0x7fff8fecc000 + 90968
3 libsystem_c.dylib 0x00007fff8a7fb7a2 _pthread_start + 327
4 libsystem_c.dylib 0x00007fff8a7e81e1 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff52b72108 rdx: 0x0000000000000000
rdi: 0x0000000000000c07 rsi: 0x0000000000000006 rbp: 0x00007fff52b72130 rsp: 0x00007fff52b72108
r8: 0x00007fff769b7278 r9: 0x0000000000000141 r10: 0x0000000020000000 r11: 0x0000000000000206
r12: 0x00007fff52b72248 r13: 0x000000010ea71680 r14: 0x00007fff769b8180 r15: 0x00007fff52b721f0
rip: 0x00007fff903ad212 rfl: 0x0000000000000206 cr2: 0x00007f86d883a400
Logical CPU: 0
后来直接google了下DVTInvalidation.m。没想到竟然搜到stackoverflow上有人遇到了这个问题。然后就顺利解决这个问题了。
以下就是解决方案:To prevent xCode5 from Crashing follow these steps. Xcdoe > Preferences > Source Control > Uncheck the Enable Source control .
来自于stackoverflow上的两篇文章:
http://stackoverflow.com/questions/18905900/xcode-5-crashes-xcode-quit-unexpectedly
http://stackoverflow.com/questions/18890986/xcode-5-crashes-with-svn-version-1-7-self-signed-certificate
记录下这个问题的原因是想告诉自己:
1.遇到问题要会分析问题。像xcode的闪退,有崩溃日志存在,那就要去好好分析它的日志。推荐阅读如下文章:http://www.raywenderlich.com/zh-hans/30818/ios%E5%BA%94%E7%94%A8%E5%B4%A9%E6%BA%83%E6%97%A5%E5%BF%97%E6%8F%AD%E7%A7%98
2.如果看不懂问题的话,那怎么办?要会提出问题,把问题的关键点寻找出来,然后寻求帮助。
关于XCode5打开工程闪退的一种解决方案的更多相关文章
- 针对Eclipse闪退的两种解决方案
闪退情况是:双击Eclipse登陆按钮,显示图标后,紧接着关闭: 1. 到eclipse文件夹中的eclipse.ini打开编辑在最后加入下面代码保存即可 -Dorg.eclipse.swt.brow ...
- 190628 - 解决新版本LastPass没有谷歌套件时打开就闪退的问题.md
目录 解决新版本LastPass没有谷歌套件时打开就闪退的问题 可用解决方案 可用解决方案3 可用解决方案2 可用解决方案1 尝试安装 碰到的问题列表 问题现象 解决新版本LastPass没有谷歌套件 ...
- 升级iOS8系统后,保险箱Pro、私人保险箱、私密相冊打开就闪退的官方解决方式
升级iOS8系统后,保险箱Pro.私人保险箱.私密相冊打开就闪退的官方解决方式 写在前面的话: 1. 本文适用条件 适用于:您的保险箱Pro.私人保险箱.私密相冊在iPhone或iPad ...
- 升级iOS8和iOS9系统后,保险箱Pro、私人保险箱、私密相冊打开就闪退的官方解决方式
升级iOS8和iOS9.iOS10系统后,保险箱Pro.私人保险箱.私密相冊打开就闪退的官方解决方式 查看设备iOS操作系统版本号号办法:iPhone/iPad->设置->通用->关 ...
- E4A碰到打开自动闪退又自动打开又闪退一直循环的问题
E4A碰到打开自动闪退又自动打开又闪退一直循环的问题 这几天写了一个脚本,自己手机上,模拟器上,均测试没有问题,可以正常操作 发给另一个人,他那边居然没有一个设备能运行成功! 而且一直闪退,闪退后又打 ...
- VS 2015打开项目闪退,新建项目提示未将对象引用到实例
因为开发需要,要把开发工具换成visual studio2015,装完之后会有警告“js”安装的问题,打开VS也没有问题, 但是一打开项目就闪退,新建项目也不行,查看应用程序日志,报错提示如下: .N ...
- win10 Edge浏览器一打开就闪退崩溃的解决思路
故障现象:从Win7.Win8.1升级到Win10,或是使用Win10一段时间后,发现Edge浏览器打开一到两秒就闪退,崩溃无法打开.解决方案: 1.尝试清理: C:\Users\Administra ...
- android开发针对小米、三星、华为8.0+系统个别型号打开应用闪退
最近开发中有个别客户反馈新换的三星.小米或者华为手机打开应用就闪退,而且是个别型号.针对这种情况特别查阅了一些资料,原因是8.0+系统的手机不允许后台创建服务,那么怎么修改呢,请看代码: 1.修改启动 ...
- 安装两个版本的python安装包,后安装的python程序打开时闪退
1.环境变量的问题 (Win7)右键打开“计算机”的属性设置→高级系统设置→环境变量. 在系统变量中的path中,编辑,在末尾加入Python的安装路径“F:\Python27”, 路径与路径之间使 ...
随机推荐
- bzoj 1195: [HNOI2006]最短母串 爆搜
1195: [HNOI2006]最短母串 Time Limit: 10 Sec Memory Limit: 32 MBSubmit: 894 Solved: 288[Submit][Status] ...
- Http协议Get方式获取图片
一. 二. 我试了试,Post方式也行啊,干嘛要叫强调Get方式,费解~~ 答曰:get是向服务器请求数据,p ...
- POJ 1286 Necklace of Beads(Polya定理)
点我看题目 题意 :给你3个颜色的n个珠子,能组成多少不同形式的项链. 思路 :这个题分类就是polya定理,这个定理看起来真的是很麻烦啊T_T.......看了有个人写的不错: Polya定理: ( ...
- QQ协议的TEA加解密算法
QQ通讯协议里的加解密算法. #include <stdio.h> #include <stdlib.h> #include <memory.h> #include ...
- AD域环境的搭建 基于Server 2008 R2
AD(Active Directory)即活动目录,微软的基础件.微软的很多产品如:Exchange Server,Lync Server,SharePoint Server,Forefront Se ...
- ProcessStartInfo.UseShellExecute 属性
获取或设置一个值,该值指示是否使用操作系统外壳程序启动进程. 命名空间:System.Diagnostics程序集:System(在 system.dll 中) 语法 C# C++ VB ...
- 性能量化之cpu
系统现在很慢”似乎是对系统的性能最常用的抱怨了,但究竟慢到什么程度,如何来界定慢,可能需要对性能进行量化,对于OS来说,大致主要分为cpu,内存,磁盘,网络等组件,对这些维度的性能量化,不但可以更准确 ...
- WC2015 滚粗记
Day 0 和南师附中诸人去杭州,想到这是第三次去杭州有点感动 想到noi还要在杭州,简直…… 火车站接送好评如潮 ym大学军,到学军领资料然后到浙大宿舍安顿,noi的书包还是挺不错的 看起来宿舍还可 ...
- POJ_2392_Space_Elevator_(动态规划,背包)
描述 http://poj.org/problem?id=2392 磊方块,每种方块有数量,高度,以及该种方块所能处在的最高高度.问最高磊多高? Space Elevator Time Limit: ...
- eclipse环境NDK问题汇总
1. 配置NDK路径设置 可以在cygwin中通过vim修改,也可以在windows安装目录中修改 home\<你的用户名>\.bash_profile 文件中最后添加环境变量 NDK=/ ...