Xcode 7.3.1在MacOS Sierra Beta 5上崩溃

时间:2016-08-11 18:28:18

标签: ios xcode xcode7 macos-sierra

注意:自从Beta 1或2以来,我一直在使用Xcode7.x和MacOS Sierra。它的工作正常。我还没有碰过这台机器上的Xcode 8。

从beta 5开始,我突然无法对Xcode 7做任何事情。我启动它并打开我的工作区,一旦我将视图更改为另一个文件或项目或资产或任何东西,它就会崩溃以下错误:

Process:               Xcode [869]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               7.3.1 (10188.1)
Build Info:            IDEFrameworks-10188001000000000~3
App Item ID:           497799835
App External ID:       817226719
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [869]
User ID:               501

Date/Time:             2016-08-11 11:21:13.167 -0700
OS Version:            Mac OS X 10.12 (16A286a)
Report Version:        12
Anonymous UUID:        BC13DBAB-4D04-3E83-CF4A-4F1FFB581BCE


Time Awake Since Boot: 250 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000020
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0x20:
--> 
    __TEXT                 000000010ce99000-000000010ce9d000 [   16K] r-x/rwx SM=COW  /Applications/Xcode.app/Contents/MacOS/Xcode

Application Specific Information:
ProductBuildVersion: 7D1014

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                 0x00007fff8ce08a31 objc_retain + 33
1   com.apple.dt.DVTKit             0x000000010d73838a __38-[DVTSourceTextView setTextContainer:]_block_invoke + 28
2   com.apple.dt.DVTFoundation      0x000000010d0e5e88 __95-[NSObject(DVTObservingConvenience) _dvt_newObserverForKeyPath:options:owner:withHandlerBlock:]_block_invoke + 91
3   com.apple.dt.DVTFoundation      0x000000010d0e4d2e __73-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:]_block_invoke.195 + 83
4   com.apple.dt.DVTFoundation      0x000000010d00b911 DVTInvokeWithStrongOwnership + 75
5   com.apple.dt.DVTFoundation      0x000000010d0e48c6 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] + 336
6   com.apple.Foundation            0x00007fff7a0e9dbd NSKeyValueNotifyObserver + 350
7   com.apple.Foundation            0x00007fff7a0e9654 NSKeyValueDidChange + 486
8   com.apple.Foundation            0x00007fff7a2282d7 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:usingBlock:] + 944
9   com.apple.Foundation            0x00007fff7a0ad3c9 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 60
10  com.apple.Foundation            0x00007fff7a115c3b _NSSetObjectValueAndNotify + 261
11  com.apple.CoreFoundation        0x00007fff786cfde7 -[NSArray makeObjectsPerformSelector:withObject:] + 279
12  com.apple.UIFoundation          0x00007fff8ac9282b -[NSLayoutManager setTextStorage:] + 912
13  com.apple.dt.DVTKit             0x000000010d6ad401 -[DVTFoldingLayoutManager setTextStorage:] + 154
14  com.apple.UIFoundation          0x00007fff8ace6515 -[NSTextStorage dealloc] + 117
15  com.apple.dt.DVTKit             0x000000010d64647e -[DVTTextStorage dealloc] + 911
16  com.apple.Foundation            0x00007fff7a11dcbd NSKVODeallocate + 94
17  com.apple.AppKit                0x00007fff76627281 -[NSTextView dealloc] + 813
18  com.apple.dt.DVTKit             0x000000010d803030 -[DVTCompletingTextView dealloc] + 120
19  com.apple.AppKit                0x00007fff76427a96 -[NSTextView release] + 464
20  libsystem_blocks.dylib          0x00007fff8d728952 _Block_release + 102
21  libsystem_blocks.dylib          0x00007fff8d728952 _Block_release + 102
22  libdispatch.dylib               0x00007fff8d6d9c6f _dispatch_source_handler_dispose + 23
23  libdispatch.dylib               0x00007fff8d6c9da3 _dispatch_source_cancel_callout + 90
24  libdispatch.dylib               0x00007fff8d6c0a6e _dispatch_source_invoke + 1512
25  libdispatch.dylib               0x00007fff8d6cba0f _dispatch_main_queue_callback_4CF + 505
26  com.apple.CoreFoundation        0x00007fff7870bd39 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
27  com.apple.CoreFoundation        0x00007fff786cd15d __CFRunLoopRun + 2205
28  com.apple.CoreFoundation        0x00007fff786cc664 CFRunLoopRunSpecific + 420
29  com.apple.HIToolbox             0x00007fff77c6ef7c RunCurrentEventLoopInMode + 240
30  com.apple.HIToolbox             0x00007fff77c6edb1 ReceiveNextEventCommon + 432
31  com.apple.HIToolbox             0x00007fff77c6ebe6 _BlockUntilNextEventMatchingListInModeWithFilter + 71
32  com.apple.AppKit                0x00007fff76365c41 _DPSNextEvent + 1093
33  com.apple.AppKit                0x00007fff76a75693 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1637
34  com.apple.dt.DVTKit             0x000000010d601439 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 396
35  com.apple.AppKit                0x00007fff7635a610 -[NSApplication run] + 926
36  com.apple.AppKit                0x00007fff763250e2 NSApplicationMain + 1237
37  com.apple.dt.Xcode              0x000000010ce9a39b 0x10ce99000 + 5019
38  libdyld.dylib                   0x00007fff8d6f4255 start + 1

其他人在测试版5中遇到过这个问题吗?

3 个答案:

答案 0 :(得分:5)

来自macOS Sierra beta 5发行说明:

的Xcode Xcode 7.3.1与macOS Sierra不兼容。 解决方法:在macOS Sierra上运行时使用Xcode 8.0 beta或更高版本。

应该可以在xcode 8中使用swift 2.3。从beta 6注释:

对于macOS Sierra上的开发人员,建议您转到Xcode 8.您可以继续使用随附的Swift 2.3编译器使用Swift 2.x版本进行开发,直到您准备好迁移到Swift 3. Xcode 7.3.1 macOS Sierra不支持。 (27224895)

答案 1 :(得分:4)

使用稳定的Mac OS X Sierra(v10.12),Xcode 7.3.1开始在第三次发布时工作。一切似乎都很好,模拟器或其他任何问题都没有!

如果Xcode在第一次发布时没有工作,请不要失去希望:)

答案 2 :(得分:0)

我已经能够在Mac OS Sierra(非beta)中为xcode 7.3.1重新创建同样的特定问题(DVTSourceTextView setTextContainer)。奇怪的是,我发现它在某种程度上归功于我的Cocoapods实施。我能够打开项目而不是工作区。我删除了我的工作区和Pods目录,然后执行了pod安装来重做它。

那时问题已得到解决。失去了几天的工作研究,希望这有助于某人。