Closed Whirlwind closed 9 years ago
没有试出来,可以贴个崩溃的log来看看吗? 在 Edit 那个菜单里边关了 ConvertUnicodeInConsole 试试呢?如果是这个插件引起的,这样应该也可以不崩溃
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff84881064 objc_retain + 20
1 dhcdht.XcodeConsoleUnicodePlugin 0x00000001140dbd31 -[XcodeConsoleUnicode_NSTextStorage fixAttributesInRange:] + 97 (DXXcodeConsoleUnicodePlugin.m:27)
2 ru.DeepIT.XcodeColors 0x00000001117a5995 -[NSTextStorage(XcodeColors) xc_fixAttributesInRange:] + 32 (XcodeColors.m:289)
3 com.imimux.XcAddedMarkup 0x00000001140f84e0 -[XcAM_XcodeColors_NSTextStorage fixAttributesInRange:] + 33 (XcAddedMarkupPlugin.m:57)
4 com.apple.UIFoundation 0x00007fff8d3aaf2d -[NSTextStorage processEditing] + 112
5 com.apple.UIFoundation 0x00007fff8d3aae88 -[NSTextStorage edited:range:changeInLength:] + 312
6 com.apple.AppKit 0x00007fff8531289f -[NSTextView setTextColor:] + 127
7 com.apple.AppKit 0x00007fff85312529 -[NSTextFieldCell setUpFieldEditorAttributes:] + 65
8 com.apple.AppKit 0x00007fff856eae6d -[NSSecureTextFieldCell setUpFieldEditorAttributes:] + 194
9 com.apple.AppKit 0x00007fff85311b41 _NSEditTextCellWithOptions + 1462
10 com.apple.AppKit 0x00007fff85311025 -[NSTextFieldCell _selectOrEdit:inView:target:editor:event:start:end:] + 506
11 com.apple.AppKit 0x00007fff85310b4c -[NSCell selectWithFrame:inView:editor:delegate:start:length:] + 59
12 com.apple.AppKit 0x00007fff856eb11a -[NSSecureTextFieldCell selectWithFrame:inView:editor:delegate:start:length:] + 248
13 com.apple.AppKit 0x00007fff853105d1 -[NSTextField selectText:] + 230
14 com.apple.AppKit 0x00007fff853103bc -[NSTextField becomeFirstResponder] + 160
15 com.apple.AppKit 0x00007fff85224542 -[NSWindow makeFirstResponder:] + 727
16 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010e76a4b9 -[NSWindow(IBWindowAdditions) ibSwizzledMakeFirstResponder:] + 31
17 com.apple.AppKit 0x00007fff85844ef9 -[NSWindow _reallySendEvent:] + 11714
18 com.apple.AppKit 0x00007fff852cbb4e -[NSWindow sendEvent:] + 446
19 com.apple.AppKit 0x00007fff8527de51 -[NSApplication sendEvent:] + 4183
20 com.apple.dt.IDEKit 0x0000000104c7dab4 -[IDEApplication sendEvent:] + 924
21 com.apple.AppKit 0x00007fff8510a078 -[NSApplication run] + 711
22 com.apple.AppKit 0x00007fff850f5464 NSApplicationMain + 1832
23 libdyld.dylib 0x00007fff87a795c9 start + 1
和 ConvertUnicodeInConsole 无关。可能是多个插件冲突了。
我试着同时装了 DXXcodeConsoleUnicodePlugin,XcodeColors 和 XcAddedMarkupPlugin 插件,输密码的时候没处问题,调用的堆栈是和这个log一样的,只是不崩溃。
使用了新的办法监测和替换console里边的字符串,理论上不会再有这个崩溃了
很奇怪的问题,在 Xcode 的
Preference
->Account
->Add Apple ID
,当输入密码的时候(激活密码输入框),百分百崩溃。删除该插件就正常了。