当我按下键盘上的物理按钮时出现问题。 Drubber打破了:
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate { // <- breaks here
var window: UIWindow?
...
}
在日志中我只能看到这个=(
2016-02-13 22:16:37.147 RB[2780:107547] -[NSNull _fastCStringContents:]: unrecognized selector sent to instance 0x102e63af0
2016-02-13 22:16:37.149 RB[2780:107547] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull _fastCStringContents:]: unrecognized selector sent to instance 0x102e63af0'
*** First throw call stack:
(
0 CoreFoundation 0x0000000102c3ee65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010497edeb objc_exception_throw + 48
2 CoreFoundation 0x0000000102c4748d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x0000000102b9490a ___forwarding___ + 970
4 CoreFoundation 0x0000000102b944b8 _CF_forwarding_prep_0 + 120
5 CoreFoundation 0x0000000102c2af23 -[NSTaggedPointerString compare:options:range:locale:] + 243
6 Foundation 0x0000000102fd1e37 -[NSString compare:options:range:] + 29
7 UIKit 0x0000000103745e6f -[UIPhysicalKeyboardEvent _matchesKeyCommand:] + 303
8 UIKit 0x000000010366a3fd -[UIResponder _keyCommandForEvent:target:] + 364
9 UIKit 0x000000010366a5b2 -[UIResponder _keyCommandForEvent:target:] + 801
10 UIKit 0x000000010347c1aa -[UIApplication handleKeyHIDEvent:] + 397
11 UIKit 0x0000000103455838 _UIApplicationHandleEventQueue + 5469
12 CoreFoundation 0x0000000102b6aa31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
13 CoreFoundation 0x0000000102b6095c __CFRunLoopDoSources0 + 556
14 CoreFoundation 0x0000000102b5fe13 __CFRunLoopRun + 867
15 CoreFoundation 0x0000000102b5f828 CFRunLoopRunSpecific + 488
16 GraphicsServices 0x0000000106d18ad2 GSEventRunModal + 161
17 UIKit 0x000000010345b610 UIApplicationMain + 171
18 RB 0x00000001021524cd main + 109
19 libdyld.dylib 0x000000010549092d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
有人有答案吗?