Objective c xcode 4.2由于内部错误而不断崩溃
我是Mac开发的新手。我已经安装了Lion和Xcode 4.2。但是,每当我尝试单击任何.m文件时,都会遇到崩溃。我刚刚创建了一个新项目,一旦我选择了包含.h和.m文件的文件夹,它就会给我一个内部错误的崩溃。我卸载了一次,然后完全重新安装。还是一样的问题。 我基本上是一名Windows开发人员(.NET)。我正在努力学习iOS应用程序开发。 这是弹出的崩溃对话框中的错误: 内部错误 Xcode遇到内部逻辑错误。选择“继续”以在不一致的状态下继续运行Xcode。选择“崩溃”停止Xcode并向Crash Reporter提交一个bug。选择“崩溃”将导致所有未保存的数据丢失Objective c xcode 4.2由于内部错误而不断崩溃,objective-c,ios,macos,xcode4.2,Objective C,Ios,Macos,Xcode4.2,我是Mac开发的新手。我已经安装了Lion和Xcode 4.2。但是,每当我尝试单击任何.m文件时,都会遇到崩溃。我刚刚创建了一个新项目,一旦我选择了包含.h和.m文件的文件夹,它就会给我一个内部错误的崩溃。我卸载了一次,然后完全重新安装。还是一样的问题。 我基本上是一名Windows开发人员(.NET)。我正在努力学习iOS应用程序开发。 这是弹出的崩溃对话框中的错误: 内部错误 Xcode遇到内部逻辑错误。选择“继续”以在不一致的状态下继续运行Xcode。选择“崩溃”停止Xcode并向Cra
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)
这听起来确实像是Xcode中的一个bug,而不是你要负责的任何事情 你们有Xcode 4.2吗?Xcode的当前版本是4.2.1,它可能(也可能不)包含此问题的修复程序 如果您已经在使用4.2.1,或者最新版本继续显示此行为,请通过向其问题跟踪服务提交错误报告告知苹果:
也可以在苹果的开发者论坛上发布@JoePasq,这是我想做的第一件事。不幸的是,他们想让我先成为付费会员。我想先学会在Mac上开发,然后可能会花99美元成为付费会员。现在我的救世主也是,我应该注意到这一点。我不会只为论坛访问支付100美元,除非你打算通过商店发布应用程序。@JoePasq我刚刚检查了苹果开发表单。。。有相当多的帖子本质上是关于这个错误的。O_O我向你保证苹果知道它存在。craig,我从Appstore下载了它。它是4.2.1,这是Appstore提供的版本。经过一点研究,我找到了4.2,现在正在下载。我将卸载4.2.1并安装4.2,看看这是否有帮助。我可以从个人经验证明4.2也是不稳定的。您应该能够在弹出的对话框中单击“继续”,只需注意可能会出现奇怪的行为。(我个人没有看到任何情况)随着苹果公司对漏洞的处理越来越深入,情况会有所改善,但我们开发人员目前除了等待漏洞修复之外,无能为力。@SplinterReality很高兴知道。现在我不必浪费时间安装4.2,我将继续使用我目前拥有的4.2.1。不过这很烦人。我是否可以安装其他更稳定的xcode版本,如4.0或3.x,但仍然可以在Lion和最新的iOS(即iOS 5)上运行?不幸的是,4.2是为iOS 5构建的版本。你可以使用以前的版本来构建你的应用程序,但是要注意,像故事板这样的功能(对于基于表单的应用程序、游戏等非常有用)将不可用。如果你没有使用最新的Xcode,当你提交应用程序时,你也可能会被苹果拒绝,但我强调你可能会被拒绝。他们真的很喜欢你尽可能地保持更新,我也看到过“根据最新的API编译”的提醒,明确表示不这样做可能会导致应用程序被拒绝。@SplinterReality感谢您提供的信息。我会记住的