gpt4 book ai didi

xcode 生成内部错误消息

转载 作者:行者123 更新时间:2023-12-01 12:55:04 30 4
gpt4 key购买 nike

当我试图打开我的项目时,我收到一条“内部错误”消息。你知道发生了什么事吗?

Xcode encountered an internal logic error. Choose "Continue" to continue running Xcode in an inconsistent state. Choose "Crash" to halt Xcode and file a bug with Crash Reporter. Choosing "Crash" will result in the loss of all unsaved data.

详细信息如下所示:

ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-943/Framework/Classes/Model/Execution/RunContext/IDEBuildSchemeAction.m:912
Details: (_buildableReference) should not be nil.
Object: <IDEBuildActionEntry: 0x403120140>
Method: -dvt_awakeFromXMLUnarchiver:
Thread: <NSThread: 0x40010a220>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x000000010b6a8366 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x000000010ad201a4 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x000000010b246e89 -[IDEBuildActionEntry dvt_awakeFromXMLUnarchiver:] (in IDEFoundation)
3 0x000000010ad2585a -[DVTXMLUnarchiver decodeElementNodeWithXMLTextReader:owner:container:parsingState:success:error:] (in DVTFoundation)
4 0x000000010ace024a -[DVTXMLUnarchiver decodeNodeWithXMLTextReader:owner:container:parsingState:error:] (in DVTFoundation)
5 0x000000010ad25551 -[DVTXMLUnarchiver decodeElementNodeWithXMLTextReader:owner:container:parsingState:success:error:] (in DVTFoundation)
6 0x000000010ace024a -[DVTXMLUnarchiver decodeNodeWithXMLTextReader:owner:container:parsingState:error:] (in DVTFoundation)
7 0x000000010ad25551 -[DVTXMLUnarchiver decodeElementNodeWithXMLTextReader:owner:container:parsingState:success:error:] (in DVTFoundation)
8 0x000000010ace024a -[DVTXMLUnarchiver decodeNodeWithXMLTextReader:owner:container:parsingState:error:] (in DVTFoundation)
9 0x000000010ad25551 -[DVTXMLUnarchiver decodeElementNodeWithXMLTextReader:owner:container:parsingState:success:error:] (in DVTFoundation)
10 0x000000010ace024a -[DVTXMLUnarchiver decodeNodeWithXMLTextReader:owner:container:parsingState:error:] (in DVTFoundation)
11 0x000000010acdff6a -[DVTXMLUnarchiver _readAndReturnError:] (in DVTFoundation)
12 0x000000010acdfc84 -[DVTXMLUnarchiver decodeWithRootObject:error:] (in DVTFoundation)
13 0x000000010b245cc5 +[IDEScheme schemeFromXMLData:withRunContextManager:customDataStoreContainer:customDataSpecifier:isShown:orderHint:error:] (in IDEFoundation)
14 0x000000010b24542e -[IDERunContextManager _updateMap:contextForCustomDataStore:specifier:] (in IDEFoundation)
15 0x000000010b244b6f -[IDERunContextManager _customDataStoresDidUpdate] (in IDEFoundation)
16 0x000000010ad2a9d0 -[NSObject(DVTPropertyLinking) dvt_addObserverWithName:toKeyPath:ofObject:block:] (in DVTFoundation)
17 0x000000010b244554 -[IDERunContextManager initWithWorkspace:] (in IDEFoundation)
18 0x000000010b2441e5 -[IDEWorkspace _setupRunContextManager] (in IDEFoundation)
19 0x000000010b29e02e __81-[IDEWorkspace _finishLoadingAsynchronously:shouldUpgradeFromSimpleFilesFocused:]_block_invoke_0 (in IDEFoundation)
20 0x00007fff8d9a3b05 -[NSBlockOperation main] (in Foundation)
21 0x00007fff8d96a6d8 -[__NSOperationInternal start] (in Foundation)
22 0x00007fff8d97d936 ____NSOQSchedule_block_invoke_2 (in Foundation)
23 0x00007fff81bde8ba _dispatch_call_block_and_release (in libdispatch.dylib)
24 0x00007fff81be072a _dispatch_main_queue_callback_4CF (in libdispatch.dylib)
25 0x00007fff81f3506c __CFRunLoopRun (in CoreFoundation)
26 0x00007fff81f34676 CFRunLoopRunSpecific (in CoreFoundation)
27 0x00007fff87a8231f RunCurrentEventLoopInMode (in HIToolbox)
28 0x00007fff87a895c9 ReceiveNextEventCommon (in HIToolbox)
29 0x00007fff87a89456 BlockUntilNextEventMatchingListInMode (in HIToolbox)
30 0x00007fff86c93f5d _DPSNextEvent (in AppKit)
31 0x00007fff86c93861 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
32 0x00007fff86c9019d -[NSApplication run] (in AppKit)
33 0x00007fff86f0eb88 NSApplicationMain (in AppKit)
34 0x000000010acb3eec (in Xcode)
35 0x0000000000000002

最佳答案

您真的不应该在像 Xcode 这样的产品中看到“内部错误”;你看到了一个错误或一个没有人认为会发生的情况。根本原因可能是某种格式错误的项目文件:我们可以从堆栈跟踪中看到 Xcode 正在读取 XML 文件,而你说它发生在 Xcode 打开你的项目时。

我首先会创建一个新的项目文件,然后将所有文件添加到您的项目中。这可能会让人头疼,但它通常是从与项目文件相关的问题中恢复的最有效方法。

如果这听起来工作量太大并且您认为您知道问题出在哪里,您可以尝试手动编辑现有的项目文件。按住 Control 键并单击项目文件,然后从上下文菜单中选择“显示包内容”以显示项目文件中的文件,这实际上是一堆文件。然后在您喜欢的文本编辑器中打开“project.pbxproj”文件,查看定义项目的 XML。不难看出文件的结构,因此您也许能够发现问题。

例如,昨晚我不小心将 Xcode 本身添加为我项目的框架之一。这导致 Xcode 挂起,我不得不强制退出。更糟糕的是,Xcode 会尝试打开您上次退出时打开的项目,因此再次启动 Xcode 会导致另一次挂起。 (您可以通过在启动 Xcode 时按住 Shift 键来避免这种情况。)我用 TextMate 打开项目文件,在链接的框架部分找到对 Xcode.app 的引用,并将它们删除。手术很成功,患者完全康复。

关于xcode 生成内部错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10246399/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com