Xcode 因 SourceCache 中的断言失败而崩溃

2023-12-12

当我尝试编辑项目中的任何文件时,出现以下错误。

ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-943/Framework/Classes/Model/SourceControl/IDESourceControlTreeItem.m:771
Details:  (((IDESourceControlWorkingTree *)self.sourceTree).origin) should not be nil.
Object:   <IDESourceControlWorkingTreeItem: 0x401a17c00>
Method:   -repositoryURLString
Thread:   <NSThread: 0x40010a260>{name = (null), num = 1}
Hints:   None
Backtrace:
0  0x00000001012fe366 -[IDEAssertionHandler  handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1  0x00000001009751a4 _DVTAssertionFailureHandler (in DVTFoundation)
2  0x0000000100f4b455 -[IDESourceControlWorkingTreeItem repositoryURLString] (in IDEFoundation)
3  0x00007fff87b27434 _NSGetUsingKeyValueGetter (in Foundation)
4  0x00007fff87b273e9 -[NSObject(NSKeyValueCoding) valueForKey:] (in Foundation)
5  0x00007fff87b46e76 -[NSObject(NSKeyValueCoding) valueForKeyPath:] (in Foundation)
6  0x00007fff909a63f1 -[NSArrayController _multipleValueForKeyPath:atIndex:] (in AppKit)
7  0x00007fff909a54e5 -[NSArrayController _singleValueForKeyPath:] (in AppKit)
8  0x00007fff9070c09a -[_NSControllerObjectProxy valueForKeyPath:] (in AppKit)
9  0x00007fff87b46e39 -[NSObject(NSKeyValueCoding) valueForKeyPath:] (in Foundation)
10  0x00007fff87b46e39 -[NSObject(NSKeyValueCoding) valueForKeyPath:] (in Foundation)
11  0x00007fff9070bf46 -[NSBinder _valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] (in AppKit)
12  0x00007fff9070bc30 -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] (in AppKit)
13  0x00007fff9090fc92 -[NSValueBinder _referenceBindingValue] (in AppKit)
14  0x00007fff9090faa3 -[NSValueBinder _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState:] (in AppKit)
15  0x00007fff9090f788 -[NSValueBinder _observeValueForKeyPath:ofObject:context:] (in AppKit)
16  0x00007fff909275af -[NSTextValueBinder _observeValueForKeyPath:ofObject:context:] (in AppKit)
17  0x00007fff906fdbdb -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] (in AppKit)
18  0x0000000100b38c0d -[NSObject(DVTBindingUtilities) dvt_bind:toObject:withKeyPath:options:] (in DVTKit)
19  0x0000000101358251 -[IDEInspectorBasicStringProperty bindAndConfigure] (in IDEKit)
20  0x00000001013ff200 -[IDEInspectorPathFieldProperty bindAndConfigure] (in IDEKit)
21  0x000000010134e1c9 -[IDEInspectorProperty viewDidInstall] (in IDEKit)
22  0x00007fff8b3ee2e1 -[NSObject performSelector:] (in CoreFoundation)
23  0x00007fff8b3f2722 -[NSArray makeObjectsPerformSelector:] (in CoreFoundation)
24  0x0000000101407e8d -[IDEInspectorPropertyContainingView propertiesDidInstall] (in IDEKit)
25  0x0000000101407fcf -[IDEInspectorPropertyContainingView viewDidMoveToWindow] (in IDEKit)
26  0x00007fff907f9153 -[NSView _setWindow:] (in AppKit)
27  0x00007fff90725124 __NSViewRecursionHelper (in AppKit)
28  0x00007fff8b385314 CFArrayApplyFunction (in CoreFoundation)
29  0x00007fff907f90d7 -[NSView _setWindow:] (in AppKit)
30  0x00007fff90725124 __NSViewRecursionHelper (in AppKit)
31  0x00007fff8b385314 CFArrayApplyFunction (in CoreFoundation)
32  0x00007fff907f90d7 -[NSView _setWindow:] (in AppKit)
33  0x00007fff90725124 __NSViewRecursionHelper (in AppKit)
34  0x00007fff8b385314 CFArrayApplyFunction (in CoreFoundation)
35  0x00007fff907f90d7 -[NSView _setWindow:] (in AppKit)
36  0x00007fff90725124 __NSViewRecursionHelper (in AppKit)
37  0x00007fff8b385314 CFArrayApplyFunction (in CoreFoundation)
38  0x00007fff907f90d7 -[NSView _setWindow:] (in AppKit)
39  0x00007fff90725124 __NSViewRecursionHelper (in AppKit)
40  0x00007fff8b385314 CFArrayApplyFunction (in CoreFoundation)
41  0x00007fff907f90d7 -[NSView _setWindow:] (in AppKit)
42  0x00007fff907f73e2 -[NSView addSubview:] (in AppKit)
43  0x00000001046785b4 -[NSView(IBAppKitViewIntegration) ibSwizzledNSViewDebug_addSubview:] (in IDEInterfaceBuilderCocoaIntegration)
44  0x0000000100bb167d -[DVTDisclosureView layoutTopDown] (in DVTKit)
45  0x0000000100b291c3 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
46  0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
47  0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
48  0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
49  0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
50  0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
51  0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
52  0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
53  0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
54  0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
55  0x0000000100b29272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
56  0x0000000100b29037 +[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:] (in DVTKit)
57  0x0000000100b28de1 -[DVTAutoLayoutView viewWillDraw] (in DVTKit)
58  0x00007fff90723c11 -[NSView viewWillDraw] (in AppKit)
59  0x00007fff90723c11 -[NSView viewWillDraw] (in AppKit)
60  0x00007fff90723c11 -[NSView viewWillDraw] (in AppKit)
61  0x00007fff90723c11 -[NSView viewWillDraw] (in AppKit)
62  0x00007fff90722952 -[NSView _sendViewWillDrawInRect:clipRootView:suppressRecursion:] (in AppKit)
63  0x00007fff907216c1 -[NSView displayIfNeeded] (in AppKit)
64  0x00007fff9072107d _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints (in AppKit)
65  0x00007fff8b3b6f37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (in CoreFoundation)
66  0x00007fff8b3b6e96 __CFRunLoopDoObservers (in CoreFoundation)
67  0x00007fff8b38c159 __CFRunLoopRun (in CoreFoundation)
68  0x00007fff8b38bae6 CFRunLoopRunSpecific (in CoreFoundation)
69  0x00007fff8f1dd3d3 RunCurrentEventLoopInMode (in HIToolbox)
70  0x00007fff8f1e463d ReceiveNextEventCommon (in HIToolbox)
71  0x00007fff8f1e44ca BlockUntilNextEventMatchingListInMode (in HIToolbox)
72  0x00007fff906e53f1 _DPSNextEvent (in AppKit)
73  0x00007fff906e4cf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
74  0x00007fff906e162d -[NSApplication run] (in AppKit)
75  0x00007fff9096080c NSApplicationMain (in AppKit)
76  0x0000000100904eec (in Xcode)

我尝试清除 XCode 缓存,如中所述this问题,但这没有用。 我尝试重新安装 xcode 但也失败了。

我在 MAC OSX 版本 10.7.2 (Lion) 上使用 Xcode 版本 4.2.1。

如果您对此有任何建议,请告诉我。

Thanks.


现在这个问题已经解决了。这是由于 XCode 中缺少存储库造成的。我必须转到“组织者”->“存储库”,然后按左下角的 + 按钮来添加存储库。之后我的项目编译得很好。不过还是感谢霍斯特的努力。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Xcode 因 SourceCache 中的断言失败而崩溃 的相关文章

  • 为什么我无法设置 SSHFS 共享? “OSXFUSE 文件系统不可用”错误

    我正在尝试设置从本地计算机到远程计算机的 SSHFS 共享 但它不起作用 我收到错误 OSXFUSE 文件系统不可用 见下文 如何解决这个问题 仅供参考 我的本地计算机是运行 OSX 10 9 3 的 MacBook Pro 笔记本电脑 远
  • Font Awesome 图标在 OSX Safari 中不起作用

    My font awesome图标在 Firefox 和 Chrome 中工作正常 但在 Safari 中我只看到其中一些图标的空白 而其他图标则看不到 截屏 如您所见 图标为fa twitter fa instagram和其他人只是没有出
  • IOS:触摸 Imageview 时的事件

    我有一个带有 png 的 ImageView 我想这样做 当有人触摸这个 imageview 时 它的 alpha 更改为 0 0 这可能吗 全部无按钮 您可以使用UITapGestureRecognizer添加到UIImageView v
  • 具有自定义标题颜色和图像的 UITabBarItem

    我正在尝试在 xcode ios 中自定义我的 TabBar 但是我刚刚发现 ppl 说这是不可自定义的 另外 我确实找到了某种解决方案 但它们都不适合我 我几乎想更改 UITabBarItem 标题 文本 颜色 并更改其中的 2 张图像
  • 您无权使用此服务 iTunes 应用程序上传错误 [关闭]

    Closed 这个问题需要多问focused help closed questions 目前不接受答案 自 2015 年 11 月末 Apple 用户和角色 更新至 iTunesConnect 以来 一些人一直遇到错误消息 iTunes
  • Objective-C:NSLinguisticTagger“纽约”与“纽约”

    我刚刚开始玩NSLinguisticTagger我的代码基于此博客 NSLinguisticTagger NSHipster com http nshipster com nslinguistictagger NSLinguisticTag
  • SDK“iOS 8.4”不允许临时代码签名

    我正在尝试在 iPhone 上运行我的 IOS 应用程序 我有一个苹果开发人员帐户 并且我执行了创建证书的所有步骤 当我尝试运行它时 我收到以下错误消息 代码签名错误 SDK iOS 8 4 不允许进行临时代码签名 CodeSign 错误
  • 魔法记录未保存

    我正在使用魔法记录 https github com magicalpanda MagicalRecord https github com magicalpanda MagicalRecord 我正在尝试使用 Magical Record
  • 如何遍历 macOS 中其他应用程序的窗口/视图层次结构?

    我试图弄清楚如何获取 只读 任何应用程序的整个窗口 视图层次结构 我使用以下方式获取所有打开的窗口的列表CGWindowListCopyWindowInfo 它还返回窗口号 kCGWindowNumber 它还通过以下方式显示根窗口的共享状
  • 音频单元主机需要做什么才能使用非 Apple 音频单元?

    我正在编写一个 Objective C 框架 需要托管音频单元 如果我尝试使用 Apple 的默认单元 例如 DLS Synth 和各种效果 一切都会工作得很好 但是 我的应用程序似乎无法找到任何第三方音频单元 在 Library Audi
  • 从代码覆盖率中排除 SwiftUI 预览?

    我无法将代码覆盖率提高到最低限度 90 因为 XCode 考虑了 PreviewProvider 我应该怎么办 删除所有 SwiftUI 预览 或者有没有办法可以排除一些带有 PreviewProvider 关键字等的行 Xcode 版本
  • iOS 5:UIImagePickerController 崩溃

    我面临的问题是UIImagePickerController在 iOS 5 中 我的应用程序开发于iOS4 3但现在我将其升级为iOS5 当我尝试从照片库中选择图像时 我的应用程序崩溃了 它在 main m 文件中崩溃EXE BAD ACC
  • 无论 Rosetta 如何,获取 M1 Mac 的真实架构

    我需要检索 Mac 的真实架构 无论该进程是否通过 Rosetta 运行 现在在 Node js 中 process arch回报x64并在外壳中 uname m回报x86 64 感谢 Ouroborus 这张纸条 https develo
  • 如何使用 java 应用程序查看 Mac 操作系统中安装的软件?

    我正在编写一个程序 列出我的 mac 中安装的所有软件 我在哪里可以找到这些信息 谢谢 您可以致电lsregister dump获取在 Launch Services 中注册的所有应用程序的列表 不过 输出需要进行解析 每个记录都有一个pa
  • Xcode:libpods.a 为红色

    有人知道为什么吗 我正在使用 SWRevealViewController 到目前为止它一直在工作 我正在使用工作区 并且我已经研究过其他文章 但到目前为止没有任何效果 它不会引发错误 但是当我运行程序时 它不会加载任何内容 因为 SWRe
  • Zend Framework 2相册教程发生404错误请求的URL无法通过路由MAMP OSX匹配

    刚刚也在 IRC 频道 ZFTalk 上发布了这个 希望我能得到一些关于 ZF2 ZF2 专辑教程 使用 MAMP 的 OSX 的帮助 骨架框架 主页正在运行 问题 完成第 8 5 节 列出专辑 后 您用一些代码填充 module Albu
  • iOS 中的胖二进制文件

    是否有可能为 iOS 构建 32 位和 64 位 胖 二进制文件 我的理解是 这即将到来 但我在 Xcode 的最新更新中看不到明显的方法来做到这一点 我希望我的应用程序在 5S 上以 64 位模式运行 在 5 及以下版本上以 32 位模式
  • 连接到 Mac Mini 时设备经常失去连接

    我正在尝试在 MAC Mini 上开发 android 应用程序 并安装了所有必需的软件 如 android SDK eclipse 和 ADT 到目前为止 除了一件事之外 一切都运行良好 我正在通过 USB 连接 Google Nexus
  • 运行工具链时出现“xcrun:错误:无法找到 SDK“iphonesimulator””

    我正在尝试将 Kivy 程序编译到 iOS 上 但是当我运行构建 Kivy 发行版的命令时 我不断收到此错误 xcrun 错误 无法找到 SDK iphonesimulator 我的电脑上有 xcode 到底是怎么回事 有点晚了 但我在尝试
  • Python libusb pyusb“mach-o,但架构错误”

    我在使用 pyusb 模块时遇到一些问题 我已将问题范围缩小到一行 并创建了一个小示例脚本来复制错误 usr bin env python This module was created to isolate the problem in

随机推荐