意外删除了 XCode 3.2.5 中的类...请帮帮我 [英] Accidentally deletion of classes from XCode 3.2.5 ...Please help me Please

查看:18
本文介绍了意外删除了 XCode 3.2.5 中的类...请帮帮我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不小心从 xcode(project) 中删除了我的 classes 文件夹.我尝试从垃圾中恢复它们,但垃圾中没有.我是如何使用 svn 进行备份的.但是当我尝试运行该项目时检查了整个项目后,它给出了一个错误

Accidentally my classes folder is deleted with reference from xcode(project). I try to recover them from trash but it was not present in trash. how ever I used svn for backup. but after check out the whole project when i try to run the project then it gives an error

2012-06-05 12:58:14.299 Lisnx[1285:207] Interface Builder 文件中的未知类 LisnxAppDelegate.2012-06-05 12:58:14.301 Lisnx [1285:207] Interface Builder 文件中的未知类 LisnxViewController.2012-06-05 12:58:14.304 Lisnx[1285:207] * 由于未捕获的异常NSUnknownKeyException"而终止应用程序,原因:[setValue:forUndefinedKey:]:此类不符合键值编码关键的viewController.* 第一次抛出时调用堆栈:(0 CoreFoundation 0x0119dbe9 exceptionPreprocess + 1851 libobjc.A.dylib 0x012f25c2 objc_exception_throw + 472 CoreFoundation 0x0119db21 -[NSException raise] + 173 基础 0x000756cf _NSSetUsingKeyValueSetter + 1354 基础 0x0007563d -[NSObject(NSKeyValueCoding) setValue:forKey:] + 2855 UIKit 0x004f48d6 -[UIRuntimeOutletConnection 连接] + 1126 CoreFoundation 0x011142cf -[NSArray makeObjectsPerformSelector:] + 2397 UIKit 0x004f32ed -[UINib instantiateWithOwner:options:] + 10418 UIKit 0x004f5081 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 1689 UIKit 0x002ff943 -[UIApplication _loadMainNibFile] + 17210 UIKit 0x003004ca -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 29111 UIKit 0x0030adb2 -[UIApplication handleEvent:withNewEvent:] + 153312 UIKit 0x00303202 -[UIApplication sendEvent:] + 7113 UIKit 0x00308732 _UIApplicationHandleEvent + 757614 图形服务 0x01ad3a36 PurpleEventCallback + 155015 核心基金会 0x0117f064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 5216 核心基金会 0x010df6f7 __CFRunLoopDoSource1 + 21517 核心基金会 0x010dc983 __CFRunLoopRun + 97918 核心基金会 0x010dc240 CFRunLoopRunSpecific + 20819 核心基金会 0x010dc161 CFRunLoopRunInMode + 9720 UIKit 0x002fffa8 -[UIApplication _run] + 63621 UIKit 0x0030c42e UIApplicationMain + 116022 Lisnx 0x00002528 主 + 10223 Lisnx 0x000024b9 开始 + 53)抛出 'NSException' 实例后调用终止

2012-06-05 12:58:14.299 Lisnx[1285:207] Unknown class LisnxAppDelegate in Interface Builder file. 2012-06-05 12:58:14.301 Lisnx[1285:207] Unknown class LisnxViewController in Interface Builder file. 2012-06-05 12:58:14.304 Lisnx[1285:207] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key viewController.' * Call stack at first throw: ( 0 CoreFoundation 0x0119dbe9 exceptionPreprocess + 185 1 libobjc.A.dylib 0x012f25c2 objc_exception_throw + 47 2 CoreFoundation 0x0119db21 -[NSException raise] + 17 3 Foundation 0x000756cf _NSSetUsingKeyValueSetter + 135 4 Foundation 0x0007563d -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285 5 UIKit 0x004f48d6 -[UIRuntimeOutletConnection connect] + 112 6 CoreFoundation 0x011142cf -[NSArray makeObjectsPerformSelector:] + 239 7 UIKit 0x004f32ed -[UINib instantiateWithOwner:options:] + 1041 8 UIKit 0x004f5081 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168 9 UIKit 0x002ff943 -[UIApplication _loadMainNibFile] + 172 10 UIKit 0x003004ca -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 291 11 UIKit 0x0030adb2 -[UIApplication handleEvent:withNewEvent:] + 1533 12 UIKit 0x00303202 -[UIApplication sendEvent:] + 71 13 UIKit 0x00308732 _UIApplicationHandleEvent + 7576 14 GraphicsServices 0x01ad3a36 PurpleEventCallback + 1550 15 CoreFoundation 0x0117f064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 52 16 CoreFoundation 0x010df6f7 __CFRunLoopDoSource1 + 215 17 CoreFoundation 0x010dc983 __CFRunLoopRun + 979 18 CoreFoundation 0x010dc240 CFRunLoopRunSpecific + 208 19 CoreFoundation 0x010dc161 CFRunLoopRunInMode + 97 20 UIKit 0x002fffa8 -[UIApplication _run] + 636 21 UIKit 0x0030c42e UIApplicationMain + 1160 22 Lisnx 0x00002528 main + 102 23 Lisnx 0x000024b9 start + 53 ) terminate called after throwing an instance of 'NSException'

请有人帮我解决这个问题.我会感谢他.

Please some body help me to way out from this problem. I will be thankful for him.

推荐答案

我只是很容易地了解了这个异常.只需在项目导航器中右键单击它,然后从现有源添加文件.添加所有这些类并构建它成功运行.

I just get-read of this exception easily. just going in project navigator right click on it then add file from existing source.adding all these classes and build it it successfully worked.

这篇关于意外删除了 XCode 3.2.5 中的类...请帮帮我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆