我几个月来一直在开发一个Splitview应用程序。我正在尝试添加搜索功能。
我从tableview / navigation项目的searchbar和searchController开始。两者都给了我相同的结果。点击文本视图,黑板崩溃,iPad重新启动(白苹果,黑屏)。起初我认为这是搜索栏类的问题。所以我尝试添加普通的旧textView / textField。所有都给出了相同的结果。据我所知,这是键盘。我在其他几个视图控制器中使用键盘,这个问题只在我的splitview中的masterViewController下(只是一个子类)。如果键盘在该视图下的任何位置启动,我的应用程序崩溃。我在互联网上搜索得很高。我已经创建了一个新的splitview项目,并没有得到这个错误。我正在使用iOS 9.0.2运行Xcode 7.0.1。模拟器和真实设备中的结果相同。我正处于最后阶段,真的需要搜索功能。 如果我能提供更多信息,请告诉我。
在xCode中,我看到的只有以下内容:
2015-10-18 15:17:32.343 Test Store App[2359:501341] <CATransformLayer: 0x15c669480> - changing property masksToBounds in transform-only layer, will have no effect
2015-10-18 15:17:32.345 Test Store App[2359:501341] <CATransformLayer: 0x15c78e170> - changing property masksToBounds in transform-only layer, will have no effect
2015-10-18 15:17:32.347 Test Store App[2359:501341] <CATransformLayer: 0x15c78e270> - changing property masksToBounds in transform-only layer, will have no effect
2015-10-18 15:17:32.736 Test Store App[2359:501351] Terminating since there is no system app.
在设备日志中,我看到以下内容
Oct 18 14:53:34 Brandons-iPad backboardd[2192] <Error>: -[NSNull length]: unrecognized selector sent to instance 0x1a1911ea8
Oct 18 14:53:34 Brandons-iPad backboardd[2192] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull length]: unrecognized selector sent to instance 0x1a1911ea8'
*** First throw call stack:
(0x185cd8f5c 0x19a787f80 0x185cdfc6c 0x185cdcc14 0x185be0dcc 0x185cc0a64 0x185cc0b94 0x18d0ad3f0 0x185bd70b0 0x185bdf830 0x185c0c80c 0x100089990 0x19af757b0 0x19af75770 0x19af8175c 0x19af79274 0x19af8362c 0x19af8334c 0x19b189478 0x19b189028)
Oct 18 14:53:34 Brandons-iPad SpringBoard[2194] <Warning>: Terminating since backboardd has gone away.
Oct 18 14:53:34 Brandons-iPad com.apple.xpc.launchd[1] (com.apple.backboardd[2192]) <Notice>: Service exited due to signal: Abort trap: 6
Oct 18 14:53:34 Brandons-iPad imagent[61] <Notice>: SecTaskLoadEntitlements failed error=3
Oct 18 14:53:34 Brandons-iPad imagent[61] <Warning>: [Warning] Unable to get entitlements for client task. Error: Error Domain=NSPOSIXErrorDomain Code=3 "No such process"
Oct 18 14:53:34 Brandons-iPad imagent[61] <Warning>: [Warning] Denying xpc connection, task does not have entitlement: com.apple.private.icfcallserver ((null):2194)
Oct 18 14:53:34 Brandons-iPad imagent[61] <Warning>: [Warning] Denying xpc connection, task does not have entitlement: com.apple.private.icfcallserver ((null):2194)
Oct 18 14:53:34 Brandons-iPad mediaserverd[1952] <Notice>: '' (pid = 2194) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Oct 18 14:53:34 Brandons-iPad Test Store App[2210] <Warning>: XPC connection interrupted
Oct 18 14:53:34 Brandons-iPad Test Store App[2210] <Warning>: Terminating since there is no system app.
Oct 18 14:53:34 Brandons-iPad com.apple.accessibility.AccessibilityUIServer[2195] <Warning>: XPC connection interrupted
Oct 18 14:53:34 Brandons-iPad com.apple.accessibility.AccessibilityUIServer[2195] <Warning>: Terminating since there is no system app.
Oct 18 14:53:34 Brandons-iPad MobileMail[2202] <Warning>: XPC connection interrupted
Oct 18 14:53:34 Brandons-iPad MobileMail[2202] <Warning>: Terminating since there is no system app.
Oct 18 14:53:34 Brandons-iPad diagnosticd[1477] <Error>: error evaluating process info - pid: 2192, puniqueid: 2192
Oct 18 14:53:34 Brandons-iPad backboardd[2217] <Notice>: made new hangtracer connection:0x13ee06570
Oct 18 14:53:34 Brandons-iPad backboardd[2217] <Warning>: PUIProgressWindow initWithOptions: 4 contextLevel: 2999 appearance: 0
Oct 18 14:53:34 Brandons-iPad backboardd[2217] <Warning>: main display width 1536 height 2048 framebuffer width 1536 height 2048 scale 2 orientation 0
Oct 18 14:53:34 Brandons-iPad backboardd[2217] <Warning>: PUIProgressWindow not using PreBoard appearance
Oct 18 14:53:34 Brandons-iPad backboardd[2217] <Warning>: _sideways 0
Oct 18 14:53:34 Brandons-iPad backboardd[2217] <Warning>: _renderWithIOSurface 0
Oct 18 14:53:34 Brandons-iPad backboardd[2217] <Warning>: layer position 768 1024 bounds 0 0 1536 2048
Oct 18 14:53:34 Brandons-iPad backboardd[2217] <Warning>: PUIProgressWindow trying to load image source for /System/Library/PrivateFrameworks/ProgressUI.framework/apple-logo@2x~ipad.png
Oct 18 14:53:34 Brandons-iPad aggregated[2203] <Warning>: Connection interrupted!