问题描述
不小心从 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' 实例后调用终止
请有人帮我解决这个问题.我会感谢他.
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 中的类...请帮帮我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!