Xcode 遇到内部逻辑错误

问题描述 投票:0回答:5

需要帮助 当我尝试更改 Xcode 4 中的 buildsetting 部分中的任何内容时,出现以下错误。一旦我立即更改值,我就会收到如下错误,并且 xcode 崩溃。

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

日志内容如下

Process:         Xcode [13518]
Path:            /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:      com.apple.dt.Xcode
Version:         4.0.2 (99)
Build Info:      IDEApplication-990000~53
Code Type:       X86-64 (Native)
Parent Process:  launchd [103]

Date/Time:       2011-07-10 18:14:39.963 +0530
OS Version:      Mac OS X 10.6.6 (10D573)
Report Version:  6

Interval Since Last Report:          6925 sec
Crashes Since Last Report:           3
Per-App Interval Since Last Report:  913 sec
Per-App Crashes Since Last Report:   3
Anonymous UUID:                      860BC8C7-2425-44F4-87CA-B9680C691297

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Application Specific Information:
ProductBuildVersion: 4A2002a
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[NSCFSet removeObject:]: attempt to remove nil
UserInfo: (null)
Hints: None
Backtrace:
  0  0x00007fff85188d06 __exceptionPreprocess (in CoreFoundation)
  1  0x00007fff83e300f3 objc_exception_throw (in libobjc.A.dylib)
  2  0x00007fff85188b47 +[NSException raise:format:arguments:] (in CoreFoundation)
  3  0x00007fff85188ad4 +[NSException raise:format:] (in CoreFoundation)
  4  0x00007fff8272342b -[NSCFSet removeObject:] (in Foundation)
  5  0x000000010002ee1b -[DVTModelObjectGraph didDeleteModelObject:] (in DVTFoundation)
  6  0x0000000100516b97 -[IDEFileReference _invalidateStartingWith:changeBlock:] (in IDEFoundation)
  7  0x00000001005167f5 -[IDEFileReference _invalidateResolvedFilePath] (in IDEFoundation)
  8  0x00007fff8273965b __NSThreadPerformPerform (in Foundation)
  9  0x00007fff85125f21 __CFRunLoopDoSources0 (in CoreFoundation)
 10  0x00007fff85124119 __CFRunLoopRun (in CoreFoundation)
 11  0x00007fff851238df CFRunLoopRunSpecific (in CoreFoundation)
 12  0x00007fff83234ada RunCurrentEventLoopInMode (in HIToolbox)
 13  0x00007fff8323483d ReceiveNextEventCommon (in HIToolbox)
 14  0x00007fff83234798 BlockUntilNextEventMatchingListInMode (in HIToolbox)
 15  0x00007fff800a4a2a _DPSNextEvent (in AppKit)
 16  0x00007fff800a4379 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
 17  0x00007fff8006a05b -[NSApplication run] (in AppKit)
 18  0x00007fff80062d7c NSApplicationMain (in AppKit)
 19  0x0000000100000eec

abort() called
objc[13518]: garbage collection is ON

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib               0x00007fff824a3886 __kill + 10
1   libSystem.B.dylib               0x00007fff82543eae abort + 83
2   com.apple.dt.IDEKit             0x0000000100949290 +[IDEAssertionHandler _handleAssertionWithLogString:] + 343
3   com.apple.dt.IDEKit             0x0000000100949de3 -[IDEAssertionHandler handleUncaughtException:] + 563
4   com.apple.AppKit                0x00007fff8006a15b -[NSApplication run] + 651
5   com.apple.AppKit                0x00007fff80062d7c NSApplicationMain + 364
6   com.apple.dt.Xcode              0x0000000100000eec 0x100000000 + 3820

Thread 1:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib               0x00007fff8249a996 select$DARWIN_EXTSN$NOCANCEL + 10
1   libSystem.B.dylib               0x00007fff824704a7 _dispatch_mgr_invoke + 388
2   libSystem.B.dylib               0x00007fff82470094 _dispatch_queue_invoke + 185
3   libSystem.B.dylib               0x00007fff8246fbbe _dispatch_worker_thread2 + 252
4   libSystem.B.dylib               0x00007fff8246f4e8 _pthread_wqthread + 353
5   libSystem.B.dylib               0x00007fff8246f385 start_wqthread + 13

Thread 2:
0   libSystem.B.dylib               0x00007fff8245575a mach_msg_trap + 10
1   libSystem.B.dylib               0x00007fff82455dcd mach_msg + 59
2   com.apple.CoreFoundation        0x00007fff85124452 __CFRunLoopRun + 1698
3   com.apple.CoreFoundation        0x00007fff851238df CFRunLoopRunSpecific + 575
4   com.apple.DTDeviceKit           0x0000000114016598 -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 314
5   com.apple.Foundation            0x00007fff82721ead __NSThread__main__ + 1429
6   libSystem.B.dylib               0x00007fff8248e8b6 _pthread_start + 331
7   libSystem.B.dylib               0x00007fff8248e769 thread_start + 13

Thread 3:
0   libSystem.B.dylib               0x00007fff82499286 select$DARWIN_EXTSN + 10
1   com.apple.CoreFoundation        0x00007fff85145ef2 __CFSocketManager + 818
2   libSystem.B.dylib               0x00007fff8248e8b6 _pthread_start + 331
3   libSystem.B.dylib               0x00007fff8248e769 thread_start + 13

Thread 4:
0   libSystem.B.dylib               0x00007fff82490316 __semwait_signal + 10
1   libSystem.B.dylib               0x00007fff82494131 _pthread_cond_wait + 1286
2   com.apple.Xcode.DevToolsCore    0x00000001151d9f04 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:] + 330
3   com.apple.Foundation            0x00007fff82721ead __NSThread__main__ + 1429
4   libSystem.B.dylib               0x00007fff8248e8b6 _pthread_start + 331
5   libSystem.B.dylib               0x00007fff8248e769 thread_start + 13

Thread 5:
0   libSystem.B.dylib               0x00007fff82490316 __semwait_signal + 10
1   libSystem.B.dylib               0x00007fff82494131 _pthread_cond_wait + 1286
2   com.apple.CoreVideo             0x00007fff824048ba CVDisplayLink::runIOThread() + 804
3   com.apple.CoreVideo             0x00007fff8240455b startIOThread(void*) + 139
4   libSystem.B.dylib               0x00007fff8248e8b6 _pthread_start + 331
5   libSystem.B.dylib               0x00007fff8248e769 thread_start + 13

Thread 6:
0   libSystem.B.dylib               0x00007fff8246f30a __workq_kernreturn + 10
1   libSystem.B.dylib               0x00007fff8246f71c _pthread_wqthread + 917
2   libSystem.B.dylib               0x00007fff8246f385 start_wqthread + 13

Thread 7:
0   libSystem.B.dylib               0x00007fff8246f30a __workq_kernreturn + 10

1   libSystem.B.dylib               0x00007fff8246f71c _pthread_wqthread + 917
2   libSystem.B.dylib               0x00007fff8246f385 start_wqthread + 13

Thread 8:
0   libSystem.B.dylib               0x00007fff8246f30a __workq_kernreturn + 10
1   libSystem.B.dylib               0x00007fff8246f71c _pthread_wqthread + 917
2   libSystem.B.dylib               0x00007fff8246f385 start_wqthread + 13

Thread 9:  Dispatch queue: com.apple.root.default-priority
0   libSystem.B.dylib               0x00007fff82455796 semaphore_wait_trap + 10
1   libSystem.B.dylib               0x00007fff824919b5 _dispatch_semaphore_wait_slow + 211
2   libSystem.B.dylib               0x00007fff824917e9 _dispatch_barrier_sync_f_slow + 134
3   com.apple.dt.IDEFoundation      0x00000001005ffd82 -[IDEIndexableMainThreadProxy indexableFiles] + 132
4   com.apple.dt.IDEFoundation      0x0000000100555ca3 -[IDEIndex _purgeStaleData] + 471
5   com.apple.dt.IDEFoundation      0x00000001005553c3 __36-[IDEIndex _finishIndexingWorkspace]_block_invoke_0 + 198
6   com.apple.Foundation            0x00007fff8274b081 -[__NSOperationInternal start] + 681
7   com.apple.Foundation            0x00007fff8274ad37 ____startOperations_block_invoke_2 + 99
8   libSystem.B.dylib               0x00007fff82491610 _dispatch_call_block_and_release + 15
9   libSystem.B.dylib               0x00007fff8246fbb1 _dispatch_worker_thread2 + 239
10  libSystem.B.dylib               0x00007fff8246f4e8 _pthread_wqthread + 353
11  libSystem.B.dylib               0x00007fff8246f385 start_wqthread + 13

Thread 10:
0   libSystem.B.dylib               0x00007fff8246f30a __workq_kernreturn + 10
1   libSystem.B.dylib               0x00007fff8246f71c _pthread_wqthread + 917
2   libSystem.B.dylib               0x00007fff8246f385 start_wqthread + 13

Thread 11:
0   libSystem.B.dylib               0x00007fff8245575a mach_msg_trap + 10
1   libSystem.B.dylib               0x00007fff82455dcd mach_msg + 59
2   com.apple.CoreFoundation        0x00007fff85124452 __CFRunLoopRun + 1698
3   com.apple.CoreFoundation        0x00007fff851238df CFRunLoopRunSpecific + 575
4   com.apple.DebugSymbols          0x00007fff854939dc SpotlightQueryThread(void*) + 380
5   libSystem.B.dylib               0x00007fff8248e8b6 _pthread_start + 331
6   libSystem.B.dylib               0x00007fff8248e769 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007fff5fbffa08  rcx: 0x00007fff5fbff9a8  rdx: 0x0000000000000000
  rdi: 0x00000000000034ce  rsi: 0x0000000000000006  rbp: 0x00007fff5fbff9c0  rsp: 0x00007fff5fbff9a8
   r8: 0x0000000000000000   r9: 0x000000011c9c44e0  r10: 0x00007fff8249f8ca  r11: 0x0000000000000202
  r12: 0x00007fff70509258  r13: 0x00000002062d89c0  r14: 0x0000000201f95260  r15: 0x00000001001505e0
  rip: 0x00007fff824a3886  rfl: 0x0000000000000202  cr2: 0x0000000005ba9000
iphone xcode4
5个回答
2
投票

“Xcode 崩溃。” ...然后停下来。

这是 Xcode 的一个错误,您并没有做错什么(所以我们无法告诉您如何正确执行)。我们也没有 Xcode 的源代码,所以我们无法调试问题。

请向相应的软件供应商提交错误报告,以了解您最喜欢的 IDE 或开发人员实用程序的崩溃错误。他们确实是唯一能够修复崩溃错误的人。对于 Apple 的内容,请使用 http://bugreport.apple.com


1
投票

当我在 info.plist 中有一些错误的值/类型时,我遇到了这个问题。 特别是我有一个图标文件键指向错误的数组类型(应该是字符串类型)。如果您对 info.plist 进行了任何更改,我建议您可以恢复到上次保存的版本以进一步排除故障。


0
投票

希望这会对某人有所帮助。当您单击“运行”时,关闭警告您已运行实例的对话框后,我遇到了相同的错误。

基本上,如果我现在不通过点击“停止”关闭以前运行的实例,我在尝试运行时会收到此错误。

我花了一段时间才弄清楚,但让我不必重新安装 XCode。


0
投票

当我遇到此问题时,最常见的是我的项目中存在无效的文件引用。通常引用另一个 Xcode 项目中的文件。如果您转到项目浏览器,请检查(在我的例子中)仅显示文件图标而没有文件名的文件。删除这些引用,退出 Xcode 并重新启动它。不知道会发生什么导致这种情况,但这通常对我有用。此外,尝试编辑 xcodeproj 包内容中的 project.pbxproj 文件弊大于利。应该能够解决问题。


0
投票

前几天,当我移动为 Testflight(beta 测试)创建的 ipa 时,就发生了这种情况。我把它复制回来后,它就不再给我这个错误了。因此,显然移动项目文件夹中的任何文件都可能导致此错误。

© www.soinside.com 2019 - 2024. All rights reserved.