gpt4 book ai didi

ios - 运行应用程序时 xCode 崩溃

转载 作者:可可西里 更新时间:2023-11-01 04:28:47 26 4
gpt4 key购买 nike

每次我尝试在 Xcode 中运行 iOS 应用程序时,它都会崩溃。我已经尝试重新启动我的机器,在物理硬件和模拟器上运行应用程序,并从 xcodeproj 包中清除 xcuserdata 文件夹。对于这些尝试中的每一个,当我按下运行按钮或键入“cmd + R”时,Xcode 立即崩溃。

我在下面包含了崩溃报告以获取更多信息。我正在运行 OSX 10.11 和 Xcode 版本 7.0.1 (7A1001)。有没有其他人有幸解决这个问题?

Application Specific Information:
ProductBuildVersion: 7A1001
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8228/IDEKit/Application/IDEWindowMenuController.m:101
Details: itemName should be a non-empty string, but it's an empty string
Object: <IDEWindowMenuController>
Method: +titleForItemWithURL:name:parentLocations:presentedParentLocationCount:includeIconInTitles:
Thread: <NSThread: 0x7fbaca619830>{number = 1, name = main}
Hints: None
Backtrace:
0 0x000000010ccc6904 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 0x000000010b88f22e _DVTAssertionHandler (in DVTFoundation)
2 0x000000010b88f445 _DVTAssertionFailureHandler (in DVTFoundation)
3 0x000000010cb36d56 +[IDEWindowMenuController titleForItemWithURL:name:parentLocations:presentedParentLocationCount:includeIconInTitles:] (in IDEKit)
4 0x000000010d0455f6 __90+[IDEWindowMenuController _createAttributedTitlesForItemDictionaries:includeIconInTitles:]_block_invoke (in IDEKit)
5 0x00007fff9c0aaa96 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke (in CoreFoundation)
6 0x00007fff9c0aa929 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] (in CoreFoundation)
7 0x000000010caa52cb +[IDEWindowMenuController _createAttributedTitlesForItemDictionaries:includeIconInTitles:] (in IDEKit)
8 0x000000010caa44a1 -[IDEWindowMenuController _windowMenuItemsWithIconInTitles:] (in IDEKit)
9 0x000000010caa612b -[IDEApplication menuNeedsUpdate:] (in IDEKit)
10 0x00007fff96d843f4 -[NSMenu _populateFromDelegateWithEventRef:] (in AppKit)
11 0x00007fff96d80999 -[NSMenu _populateWithEventRef:] (in AppKit)
12 0x00007fff96d83551 -[NSCarbonMenuImpl _carbonPopulateEvent:handlerCallRef:] (in AppKit)
13 0x00007fff96d8323d NSSLMMenuEventHandler (in AppKit)
14 0x00007fff8f8e298e DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) (in HIToolbox)
15 0x00007fff8f8e1e18 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) (in HIToolbox)
16 0x00007fff8f8e1c7b SendEventToEventTargetWithOptions (in HIToolbox)
17 0x00007fff8f9293cb SendMenuPopulate(MenuData*, OpaqueEventTargetRef*, unsigned int, double, unsigned int, OpaqueEventRef*, unsigned char, unsigned char*) (in HIToolbox)
18 0x00007fff8f929174 PopulateMenu(MenuData*, OpaqueEventTargetRef*, CheckMenuData*, unsigned int, double) (in HIToolbox)
19 0x00007fff8f92881b Check1MenuForKeyEvent(MenuData*, CheckMenuData*) (in HIToolbox)
20 0x00007fff8f927dd3 CheckMenusForKeyEvent(MenuData*, CheckMenuData*) (in HIToolbox)
21 0x00007fff8f9278c0 _IsMenuKeyEvent(MenuData*, OpaqueEventRef*, unsigned int, MenuData**, unsigned short*) (in HIToolbox)
22 0x00007fff8f9275d4 IsMenuKeyEvent (in HIToolbox)
23 0x00007fff96d82e76 +[NSCarbonMenuImpl _menuItemWithKeyEquivalentMatchingEventRef:inMenu:] (in AppKit)
24 0x00007fff96d82c00 _NSFindMenuItemMatchingCommandKeyEvent (in AppKit)
25 0x00007fff96d6e2cf _NSHandleCarbonMenuEvent (in AppKit)
26 0x00007fff96be3281 _DPSNextEvent (in AppKit)
27 0x00007fff96be2369 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
28 0x000000010be6049b -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
29 0x00007fff96bd6ecc -[NSApplication run] (in AppKit)
30 0x00007fff96ba0162 NSApplicationMain (in AppKit)
31 0x00007fff9a78e5ad start (in libdyld.dylib)

最佳答案

我看到了同样的行为。我找到了 this thread在 Apple Developer 网站上解释了该怎么做:关闭 Xcode 项目中所有标题为空的选项卡。为我解决了这个问题,这就解释了为什么恢复解决了这个问题。不知何故,项目文件已损坏。

关于ios - 运行应用程序时 xCode 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33746418/

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