Ios 打开文件时发生Xcode错误
今天我试图在我的项目上打开.xcworkspace文件,但我遇到了如下错误Ios 打开文件时发生Xcode错误,ios,xcode,macos,swift,Ios,Xcode,Macos,Swift,今天我试图在我的项目上打开.xcworkspace文件,但我遇到了如下错误 Process: Xcode [740] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 6.2 (6776) Build Info: IDEFramewo
Process: Xcode [740]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.2 (6776)
Build Info: IDEFrameworks-6776000000000000~11
App Item ID: 497799835
App External ID: 811890240
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [740]
User ID: 501
Date/Time: 2015-04-07 13:45:47.945 +0700
OS Version: Mac OS X 10.10.2 (14C1514)
Report Version: 11
Anonymous UUID: 97BA685B-5788-8D8E-FA49-9E2A21F38165
Time Awake Since Boot: 7300 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
DVTUndoManager for delegate:<IBStoryboardDocument 0x7f7f5cb6a200>
ProductBuildVersion: 6C131e
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): enableUndoRegistration: IBDocumentUndoManager 0x7f7f6616fe50 is in invalid state, enableUndoRegistration may only be invoked with matching call to disableUndoRegistration
UserInfo: (null)
Hints:
0: DVTUndoManager for delegate:<IBStoryboardDocument: 0x7f7f5cb6a200>
进程:Xcode[740]
路径:/Applications/Xcode.app/Contents/MacOS/Xcode
标识符:com.apple.dt.Xcode
版本:6.2(6776)
构建信息:IDEFrameworks-6776000000000000~11
应用程序项目ID:497799835
应用程序外部ID:811890240
代码类型:X86-64(本机)
父进程:???[1]
负责人:Xcode[740]
用户ID:501
日期/时间:2015-04-07 13:45:47.945+0700
操作系统版本:Mac OS X 10.10.2(14C1514)
报告版本:11
匿名UUID:97BA685B-5788-8D8E-FA49-9E2A21F38165
自启动以来的唤醒时间:7300秒
崩溃线程:0调度队列:com.apple.main-Thread
异常类型:EXC_崩溃(SIGABRT)
异常代码:0x0000000000,0x0000000000000000
特定于应用程序的信息:
代表的DVTUndoManager:
ProductBuildVersion:6C131e
未捕获异常(NSInternalInconsistencyException):enableUndoRegistration:IBDocumentUndoManager 0x7f7f6616fe50处于无效状态,enableUndoRegistration只能通过匹配的disableUndoRegistration调用来调用
UserInfo:(空)
提示:
0:代表的DVTUndoManager:
我还重新安装了xcode并清除了catch,但没有成功。
有人知道怎么解决这个问题吗?
谢谢 在他的情况下,用鼠标右键点击.xcworkspace*打开-显示软件包内容,然后从打开的文件夹中删除不必要的内容,然后再次尝试打开.xcworkspace,您将成功打开它。如果上述答案没有像我的情况那样解决您的问题 请按照以下步骤修复此问题(注意:-这将有自动布局问题,您可以轻松修复)
您的错误似乎就在这里:未捕获异常(NSInternalInconsistencyException):enableUndoRegistration:IBDocumentUndoManager 0x7f7f6616fe50处于无效状态,enableUndoRegistration只能通过匹配的disableUndoRegistration调用。我的建议是打开DVTUndoManager.storyboard(或任何你拥有该类的地方),并尝试删除有问题的ibstoryboard文档。我只需卸载它,然后重新安装。这是什么不必要的事情?我有2个文件夹和1个contents.xcworkspacedataOther文件@Krisjulodefine“不必要的事情”是指那些对你不重要的事情。所以你可以移除它。