6

每当我尝试运行任何项目.xcodeproj.xcworkspace项目时,Xcode 都会不断崩溃。我尝试过的解决方案是:重新安装 Xcode、删除派生数据和删除 xcuserstate 文件夹。Xcode 不断失败并出现以下错误:

Process:               Xcode [7099]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               12.4 (17801)
Build Info:            IDEFrameworks-17801000000000000~7 (12D4e)
App Item ID:           497799835
App External ID:       839994694
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [7099]
User ID:               501

Date/Time:             2021-03-13 11:03:31.401 +0100
OS Version:            macOS 11.0.1 (20B29)
Report Version:        12
Anonymous UUID:        007E7CE0-17B1-C3EF-5191-4E8908451B4E

Sleep/Wake UUID:       310A38F4-3A1F-4C76-8D12-A255873336E7

Time Awake Since Boot: 28000 seconds
Time Since Wake:       570 seconds

System Integrity Protection: enabled

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: 12D4e
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-17801/IDEKit/Workspace/IDEWorkspaceDocument.m:3270
Details:  (tabController) should not be nil.
Object:   <IDEWorkspaceDocument: 0x7fa04eecbff0>
Method:   -commitStateToDictionary:
Thread:   <NSThread: 0x7fa045904c20>{number = 1, name = main}
Open FDs: 41/7168
Hints:  
4

1 回答 1

11

我和你有同样的问题,但在我这边,只有当我直接从快速项目打开窗口(启动 Xcode 时打开的窗口)打开项目时,Xcode 才会崩溃尝试通过 Finder 或直接从终端打开项目命令打开 /nameProject/xcWorkspace

我对这种方法没有任何问题。

于 2021-03-13T14:26:48.573 回答