在终端中输入 git checkout(任何分支)时间歇性地,Xcode 7.3对我来说是崩溃的:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 7D175
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-10145/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/ProjectModel/DataModel/Targets/PBXTarget.m:2170
Details: Unable to find the effective build configuration in target <PBXNativeTarget:0x7f849cf9b440:824A9DD41724E16400C9BD79:name='Redacted'> named "Debug".
Object: <PBXNativeTarget: 0x7f849cf9b440>
Method: -cachedMacroExpansionScopeForBuildParameters:
Thread: <NSThread: 0x7f8492e13730>{number = 1, name = main}
Hints: None
Backtrace:
0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 -[PBXTarget cachedMacroExpansionScopeForBuildParameters:] (in DevToolsCore)
4 __110+[XCCodeSignContext codesignParameterSnapshotWithMacroExpansionScope:emitWarnings:certificateUtilities:error:]_block_invoke (in DevToolsCore)
5 __DVTSyncPerformBlock_block_invoke (in DVTFoundation)
6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
7 __CFRunLoopDoBlocks (in CoreFoundation)
8 __CFRunLoopRun (in CoreFoundation)
9 CFRunLoopRunSpecific (in CoreFoundation)
10 RunCurrentEventLoopInMode (in HIToolbox)
11 ReceiveNextEventCommon (in HIToolbox)
12 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
13 _DPSNextEvent (in AppKit)
14 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
15 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
16 -[NSApplication run] (in AppKit)
17 NSApplicationMain (in AppKit)
18 0x0000000102c3a39b (in Xcode)
19 start (in libdyld.dylib)
我没有使用Xcode 7.2体验这一点。这是Xcode 7.3的新问题还是我的配置有问题?
答案 0 :(得分:1)
一般情况下,我总是建议在使用Xcode后面的git
做某事之前退出Xcode。基本上你是在突然改变运行时受Xcode控制的文件,而且它不是那样的。只需要一点时间就可以退出Xcode,在终端中进行操作,然后重新启动Xcode;这样做,你会没事的。要么是这样,要么使用 Xcode中的命令,以便它知道会发生什么。但是,在Xcode已经开放的项目中,不要在终端中git
。