Xcode在界面构建器中意外退出 [英] Xcode quit unexpectedly in interface builder

查看:356
本文介绍了Xcode在界面构建器中意外退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Xcode(Cocoa App OSX,Objective-C)中开始了一个新项目。每次我试图添加一个按钮到一个窗口在Interface Builder(拖放)我收到以下错误和Xcode退出。
UNCAUGHT EXCEPTION(NSUnknownKeyException):[valueForUndefinedKey:]:此类不是键值编码符合springLoaded的键。



Xcode版本6.3 Yosemite 10.10.3



任何人遇到此类行为?



部分崩溃:

 崩溃的线程:0调度队列:com.apple.main-thread 

异常类型:EXC_CRASH(SIGABRT)
异常代码:0x0000000000000000,0x0000000000000000

特定于应用程序的信息:
ProductBuildVersion:6D570
UNCAUGHT EXCEPTION(NSUnknownKeyException):[< NSButton 0x7fb46e18f090& valueForUndefinedKey:]:这个类不是键值编码兼容的键springLoaded。
UserInfo:{
NSTargetObjectUserInfoKey =< NSButton:0x7fb46e18f090>;
NSUnknownUserInfoKey = springLoaded;
}
提示:无
Backtrace:
0 0x00007fff90a4c4f4 __exceptionPreprocess(在CoreFoundation中)
1 0x00000001050ee184 DVTFailureHintExceptionPreprocessor(在DVTFoundation中)
2 0x00007fff90d1976e objc_exception_throw(in libobjc 。
3 0x00007fff90a4c0a9 - [NSException raise](在CoreFoundation中)
4 0x00007fff8dc77d25 - [NSObject(NSKeyValueCoding)valueForUndefinedKey:](在Foundation中)
5 0x00007fff8db4cccb - [NSObject(NSKeyValueCoding )valueForKey:](在Foundation中)

更新:
但是当我尝试保存我得到这个警报:
不幸的是这发生在Xcode 6.3.1



解决方案

最后我得到了苹果解决方案的答案。 / p>

这样做的原因是我使用OSX种子构建OS X 10.10.3(14D87h)。


这是与Force Touch触控板相关的新API。它是在OS X
10.10.3中添加的,但只在种子版本中添加



I started a new project in Xcode (Cocoa App OSX, Objective-C). Every time I try to add a button to a window in Interface Builder(drag and drop) I receive the following error and Xcode quits. "UNCAUGHT EXCEPTION (NSUnknownKeyException): [ valueForUndefinedKey:]: this class is not key value coding-compliant for the key springLoaded."

Xcode Version 6.3 (6D570) on Yosemite 10.10.3

Anyone experienced such behavior?

part of the crash:

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
ProductBuildVersion: 6D570
UNCAUGHT EXCEPTION (NSUnknownKeyException): [<NSButton 0x7fb46e18f090> valueForUndefinedKey:]: this class is not key value coding-compliant for the key springLoaded.
UserInfo: {
    NSTargetObjectUserInfoKey = "<NSButton: 0x7fb46e18f090>";
    NSUnknownUserInfoKey = springLoaded;
}
Hints: None
Backtrace:
  0  0x00007fff90a4c4f4 __exceptionPreprocess (in CoreFoundation)
  1  0x00000001050ee184 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
  2  0x00007fff90d1976e objc_exception_throw (in libobjc.A.dylib)
  3  0x00007fff90a4c0a9 -[NSException raise] (in CoreFoundation)
  4  0x00007fff8dc77d25 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] (in Foundation)
  5  0x00007fff8db4cccb -[NSObject(NSKeyValueCoding) valueForKey:] (in Foundation)

Update: Xcode now somehow survived the button add but when I try to save I get this Alert: Unfortunately this happens with Xcode 6.3.1

解决方案

Finally I got an answer from apple devforums.

The reason for this is that I use OSX seed build OS X 10.10.3 (14D87h).

This is new API related to Force Touch trackpads. It was added in OS X 10.10.3, but only in seed builds

这篇关于Xcode在界面构建器中意外退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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