• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

objective-c - xcode 4.2 不断因内部错误而崩溃

[复制链接]
菜鸟教程小白 发表于 2022-12-11 20:43:02 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题

我是 Mac 开发的新手。我有 Lion 并安装了 Xcode 4.2。但是,每当我尝试单击任何 .m 文件时,我都会遇到崩溃。我刚刚创建了一个新项目,一旦我选择了包含 .h 和 .m 文件的文件夹,它就会给我带来内部错误的崩溃。我卸载了一次并完全重新安装了它。还是同样的问题。 我基本上是一名 Windows 开发人员(.NET)。我正在尝试学习 iOS 应用程序开发。 这是弹出的崩溃对话框中的错误:

内部错误 Xcode 遇到内部逻辑错误。选择“继续”以在不一致的状态下继续运行 Xcode。选择“Crash”以停止 Xcode 并使用 Crash Reporter 提交错误。选择“崩溃”将导致所有未保存的数据丢失。

UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[__NSCFDictionary setObject:forKey:]:

    attempt to insert nil value (key: SourceTree(Dev))
UserInfo: (null)
Hints: None
Backtrace:
  0  0x00007fff9116926a __exceptionPreprocess (in CoreFoundation)
  1  0x00007fff94a3dd5e objc_exception_throw (in libobjc.A.dylib)
  2  0x00007fff911690ba +[NSException raise:format:arguments:] (in CoreFoundation)
  3  0x00007fff91169044 +[NSException raise:format:] (in CoreFoundation)
  4  0x00007fff9112629b -[__NSCFDictionary setObject:forKey:] (in CoreFoundation)
  5  0x000000010930b5c8 -[Xcode3Group resolutionContextForStrategies:] (in DevToolsCore)
  6  0x0000000105ee6785 -[IDEGroupIdentityAndType _resolutionContextForContentWithStrategies:] (in IDEKit)
  7  0x0000000105ee6e24 -[IDEGroupIdentityAndType customResolutionStrategiesDisplayNamePopupItems] (in IDEKit)
  8  0x00007fff897be434 _NSGetUsingKeyValueGetter (in Foundation)
  9  0x00007fff897be3e9 -[NSObject(NSKeyValueCoding) valueForKey:] (in Foundation)
 10  0x00007fff897dde76 -[NSObject(NSKeyValueCoding) valueForKeyPath:] (in Foundation)
 11  0x0000000105e3a735 -[IDEInspectorTextEnumerationProperty rebuildMenuContent] (in IDEKit)
 12  0x000000010561e028 -[DVTDelayedValidator doValidation:] (in DVTKit)
 13  0x0000000105e3b14c -[IDEInspectorTextEnumerationProperty configureEnumeratedOptions] (in IDEKit)
 14  0x0000000105e3b69e -[IDEInspectorTextEnumerationProperty bindAndConfigure] (in IDEKit)
 15  0x0000000105e361c9 -[IDEInspectorProperty viewDidInstall] (in IDEKit)
 16  0x00007fff911602e1 -[NSObject performSelector:] (in CoreFoundation)
 17  0x00007fff91164722 -[NSArray makeObjectsPerformSelector:] (in CoreFoundation)
 18  0x0000000105eefe8d -[IDEInspectorPropertyContainingView propertiesDidInstall] (in IDEKit)
 19  0x0000000105eeffcf -[IDEInspectorPropertyContainingView viewDidMoveToWindow] (in IDEKit)
 20  0x00007fff8fdf1153 -[NSView _setWindow:] (in AppKit)
 21  0x00007fff8fd1d124 __NSViewRecursionHelper (in AppKit)
 22  0x00007fff910f7314 CFArrayApplyFunction (in CoreFoundation)
 23  0x00007fff8fdf10d7 -[NSView _setWindow:] (in AppKit)
 24  0x00007fff8fd1d124 __NSViewRecursionHelper (in AppKit)
 25  0x00007fff910f7314 CFArrayApplyFunction (in CoreFoundation)
 26  0x00007fff8fdf10d7 -[NSView _setWindow:] (in AppKit)
 27  0x00007fff8fd1d124 __NSViewRecursionHelper (in AppKit)
 28  0x00007fff910f7314 CFArrayApplyFunction (in CoreFoundation)
 29  0x00007fff8fdf10d7 -[NSView _setWindow:] (in AppKit)
 30  0x00007fff8fd1d124 __NSViewRecursionHelper (in AppKit)
 31  0x00007fff910f7314 CFArrayApplyFunction (in CoreFoundation)
 32  0x00007fff8fdf10d7 -[NSView _setWindow:] (in AppKit)
 33  0x00007fff8fd1d124 __NSViewRecursionHelper (in AppKit)
 34  0x00007fff910f7314 CFArrayApplyFunction (in CoreFoundation)
 35  0x00007fff8fdf10d7 -[NSView _setWindow:] (in AppKit)
 36  0x00007fff8fdef3e2 -[NSView addSubview:] (in AppKit)
 37  0x00000001088fe5b4 -[NSView(IBAppKitViewIntegration) ibSwizzledNSViewDebug_addSubview:] (in IDEInterfaceBuilderCocoaIntegration)
 38  0x000000010569667d -[DVTDisclosureView layoutTopDown] (in DVTKit)
 39  0x000000010560e1c3 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
 40  0x000000010560e272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
 41  0x000000010560e272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
 42  0x000000010560e272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
 43  0x000000010560e272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
 44  0x000000010560e272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
 45  0x000000010560e272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
 46  0x000000010560e272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
 47  0x000000010560e272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
 48  0x000000010560e272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
 49  0x000000010560e272 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
 50  0x000000010560e037 +[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:] (in DVTKit)
 51  0x000000010560dde1 -[DVTAutoLayoutView viewWillDraw] (in DVTKit)
 52  0x00007fff8fd1bc11 -[NSView viewWillDraw] (in AppKit)
 53  0x00007fff8fd1bc11 -[NSView viewWillDraw] (in AppKit)
 54  0x00007fff8fd1bc11 -[NSView viewWillDraw] (in AppKit)
 55  0x00007fff8fd1bc11 -[NSView viewWillDraw] (in AppKit)
 56  0x00007fff8fd1a952 -[NSView _sendViewWillDrawInRect:clipRootView:suppressRecursion:] (in AppKit)
 57  0x00007fff8fd196c1 -[NSView displayIfNeeded] (in AppKit)
 58  0x00007fff8fd1907d _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints (in AppKit)
 59  0x00007fff91128f37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (in CoreFoundation)
 60  0x00007fff91128e96 __CFRunLoopDoObservers (in CoreFoundation)
 61  0x00007fff910fe159 __CFRunLoopRun (in CoreFoundation)
 62  0x00007fff910fdae6 CFRunLoopRunSpecific (in CoreFoundation)
 63  0x00007fff8d3753d3 RunCurrentEventLoopInMode (in HIToolbox)
 64  0x00007fff8d37c58f ReceiveNextEventCommon (in HIToolbox)
 65  0x00007fff8d37c4ca BlockUntilNextEventMatchingListInMode (in HIToolbox)
 66  0x00007fff8fcdd3f1 _DPSNextEvent (in AppKit)
 67  0x00007fff8fcdccf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
 68  0x00007fff8fcd962d -[NSApplication run] (in AppKit)
 69  0x00007fff8ff5880c NSApplicationMain (in AppKit)
 70  0x00000001053e7eec (in Xcode)



Best Answer-推荐答案


这听起来绝对像是 Xcode 中的一个错误,而不是你负责的任何事情。

你有 Xcode 4.2 吗? Xcode 的当前版本是 4.2.1,它可能(或可能不)包含此问题的修复程序。

如果您已经在使用 4.2.1,或者最新版本继续表现出这种行为,请通过向 Apple 的问题跟踪服务提交错误报告来告知 Apple:

Link to Apple Radar

关于objective-c - xcode 4.2 不断因内部错误而崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8468652/

回复

使用道具 举报

懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注0

粉丝2

帖子830918

发布主题
阅读排行 更多
广告位

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap