ios - Xcode 7 beta 在自动完成时崩溃 - NSRangeException
<p><p>每次 Xcode 使用自动补全时,我都会遇到此崩溃。</p>
<p>步骤-</p>
<ol>
<li>使用任何系统库 - 例如:UIColor</li>
<li>我输入“<strong>[UIColor col</strong>”并获得建议列表(colorWithCGColor - 等)</li>
<li>我按了删除键以获取有关“<strong>[UIColor co</strong>”的建议</li>
<li>Xcode 崩溃</li>
</ol>
<p>我认为这是 Xcode 版本的特定错误。但我更新到 Xcode beta 5 仍然有这个问题。 </p>
<pre><code>Application Specific Information:
ProductBuildVersion: 7A176x
UNCAUGHT EXCEPTION (NSRangeException): NSMutableRLEArray objectAtIndex:effectiveRange:runIndex:: Out of bounds
UserInfo: (null)
Hints: None
Backtrace:
00x00007fff90401024 __exceptionPreprocess (in CoreFoundation)
10x000000010103bff2 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
20x00007fff8adca76e objc_exception_throw (in libobjc.A.dylib)
30x00007fff90400eed + (in CoreFoundation)
40x00007fff8995e228 - (in Foundation)
50x00007fff8995dfdb - (in Foundation)
60x00000001016953f3 - (in DVTKit)
70x00007fff92871ef0 - (in UIFoundation)
80x000000010151e1ff - (in DVTKit)
90x00007fff8f3f46b5 - (in AppKit)
100x000000010151cdf8 - (in DVTKit)
110x000000010151ca98 - (in DVTKit)
120x00007fff8f3ae749 - (in AppKit)
130x00007fff8f3ae168 __46-_block_invoke (in AppKit)
140x00007fff8f3ade11 - (in AppKit)
150x00007fff8f3ad493 - (in AppKit)
160x00007fff8f62bc42 - (in AppKit)
170x00007fff958973c7 CABackingStoreUpdate_ (in QuartzCore)
180x00007fff958966d7 ___ZN2CA5Layer8display_Ev_block_invoke (in QuartzCore)
190x00007fff95896694 x_blame_allocations (in QuartzCore)
200x00007fff9588a43c CA::Layer::display_() (in QuartzCore)
210x00007fff8f31942b _NSBackingLayerDisplay (in AppKit)
220x00007fff8f316026 - (in AppKit)
230x00007fff8f62bb85 - (in AppKit)
240x00007fff958887fd CA::Layer::display_if_needed(CA::Transaction*) (in QuartzCore)
250x00007fff95887e81 CA::Layer::layout_and_display_if_needed(CA::Transaction*) (in QuartzCore)
260x00007fff95887612 CA::Context::commit_transaction(CA::Transaction*) (in QuartzCore)
270x00007fff958873ae CA::Transaction::commit() (in QuartzCore)
280x00007fff8f3869d6 - (in AppKit)
290x00000001016d91dd - (in DVTKit)
300x00000001016d6084 __82-_block_invoke (in DVTKit)
310x000000010104e374 __95-_block_invoke (in DVTFoundation)
320x000000010104d636 __73-_block_invoke183 (in DVTFoundation)
330x0000000100fb9eaf DVTInvokeWithStrongOwnership (in DVTFoundation)
340x0000000100e1f49f - (in DVTFoundation)
350x00007fff899660f3 NSKeyValueNotifyObserver (in Foundation)
360x00007fff89972d68 NSKeyValueDidChange (in Foundation)
370x00007fff8992b97d - (in Foundation)
380x0000000101607a51 - (in DVTKit)
390x0000000101549d3e - (in DVTKit)
400x00000001014e8101 - (in DVTKit)
410x00000001014e802a - (in DVTKit)
420x000000010150e817 - (in DVTKit)
430x00000001014e7f1a - (in DVTKit)
440x000000010150e6a4 - (in DVTKit)
450x00007fff89a7f0a4 _NSSetRangeValueAndNotify (in Foundation)
460x00007fff927b93af - (in UIFoundation)
470x0000000101670f20 - (in DVTKit)
480x00007fff927db291 - (in UIFoundation)
490x00007fff927dad93 - (in UIFoundation)
500x00000001014f2fd3 - (in DVTKit)
510x00007fff927daa61 - (in UIFoundation)
520x00000001014f2c95 - (in DVTKit)
530x00000001016316fa - (in DVTKit)
540x00007fff8f65faf1 - (in AppKit)
550x00007fff8f65f48b _NSDoUserReplaceForCharRange (in AppKit)
560x00007fff8f65f2a6 _NSDoUserDeleteForCharRange (in AppKit)
570x00007fff8f6e3c36 - (in AppKit)
580x00000001017395f0 - (in DVTKit)
590x00000001015547b2 - (in DVTKit)
600x00007fff8f5aeef1 - (in AppKit)
610x0000000101550a10 - (in DVTKit)
620x00007fff8f5aee01 - (in AppKit)
630x00007fff8f594c23 - (in AppKit)
640x00007fff8fb5b272 __61-_block_invoke972 (in AppKit)
650x00007fff8f596bff - (in AppKit)
660x00007fff8f5aed03 __61-_block_invoke_3 (in AppKit)
670x00007fff8f5a7ed8 - (in AppKit)
680x00007fff8fb5b074 __61-_block_invoke960 (in AppKit)
690x00007fff8bc1bd4f __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_5 (in HIToolbox)
700x00007fff8bc1ac45 ___ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec_block_invoke (in HIToolbox)
710x00007fff8f597606 __55-_block_invoke174 (in AppKit)
720x00007fff8f596bff - (in AppKit)
730x00007fff8f596ba0 __55-_block_invoke_2 (in AppKit)
740x00007fff8f596b18 - (in AppKit)
750x00007fff8f5967d5 - (in AppKit)
760x00007fff8f595b2e _NSTSMEventHandler (in AppKit)
770x00007fff8bbb4b6c DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) (in HIToolbox)
780x00007fff8bbb3fae SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) (in HIToolbox)
790x00007fff8bbb3e22 SendEventToEventTargetWithOptions (in HIToolbox)
800x00007fff8bc1826c SendTSMEvent_WithCompletionHandler (in HIToolbox)
810x00007fff8bc1876c __SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler_block_invoke (in HIToolbox)
820x00007fff8bc185a6 __SendFilterTextEvent_WithCompletionHandler_block_invoke (in HIToolbox)
830x00007fff8bc182c0 SendTSMEvent_WithCompletionHandler (in HIToolbox)
840x00007fff8bc1808f SendFilterTextEvent_WithCompletionHandler (in HIToolbox)
850x00007fff8bc17d51 SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler (in HIToolbox)
860x00007fff8bc17ae9 __utDeliverTSMEvent_WithCompletionHandler_block_invoke_2 (in HIToolbox)
870x00007fff8bc17988 __utDeliverTSMEvent_WithCompletionHandler_block_invoke (in HIToolbox)
880x00007fff8bc177cd TSMKeyEvent_WithCompletionHandler (in HIToolbox)
890x00007fff8bc174d0 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_4 (in HIToolbox)
900x00007fff8bc17386 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_3 (in HIToolbox)
910x00007fff8bc17112 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_2 (in HIToolbox)
920x00007fff8bc16f25 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke (in HIToolbox)
930x00007fff8bbfb76f TSMProcessRawKeyEventWithOptionsAndCompletionHandler (in HIToolbox)
940x00007fff8fb5ae86 __61-_block_invoke949 (in AppKit)
950x00007fff8f594352 - (in AppKit)
960x00007fff8f594085 - (in AppKit)
970x00007fff8f593b4e - (in AppKit)
980x00007fff8f593a54 - (in AppKit)
990x00007fff8f59386a - (in AppKit)
1000x00007fff8fa830fb - (in AppKit)
1010x00007fff8f414c86 - (in AppKit)
1020x0000000102479366 - (in IDEKit)
1030x00007fff8f4118b1 - (in AppKit)
1040x000000010222fcdf - (in IDEKit)
1050x00007fff8f33ab68 - (in AppKit)
1060x00007fff8f2b7244 NSApplicationMain (in AppKit)
1070x00007fff8fe485c9 start (in libdyld.dylib)
abort() called
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>我有同样的问题。 Xcode 7 在所描述的情况下总是崩溃。我发现 <a href="https://github.com/stefanceriu/SCXcodeMiniMap" rel="noreferrer noopener nofollow">stefanceriu/SCXcodeMiniMap</a>在我的情况下导致了崩溃。所以我决定删除它。
只需转到 ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/并删除文件夹 SCXcodeMinimap.xcplugin。</p></p>
<p style="font-size: 20px;">关于ios - Xcode 7 beta 在自动完成时崩溃 - NSRangeException,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/32070483/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/32070483/
</a>
</p>
页:
[1]