Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/102.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios splitview主键盘崩溃_Ios_Swift - Fatal编程技术网

Ios splitview主键盘崩溃

Ios splitview主键盘崩溃,ios,swift,Ios,Swift,我已经开发Splitview应用程序几个月了。我正在尝试添加搜索功能 我从我的tableview/导航项上的searchbar和searchController开始。两者都给了我同样的结果。当你点击文本视图时,黑板就会崩溃,iPad会重新启动白苹果、黑屏。起初我认为这是searchbar类的问题。所以我尝试添加普通的旧textView/textField。结果都一样。据我所知,是键盘。我在其他几个视图控制器中使用键盘,此问题仅在我的splitview中的masterViewController下

我已经开发Splitview应用程序几个月了。我正在尝试添加搜索功能

我从我的tableview/导航项上的searchbar和searchController开始。两者都给了我同样的结果。当你点击文本视图时,黑板就会崩溃,iPad会重新启动白苹果、黑屏。起初我认为这是searchbar类的问题。所以我尝试添加普通的旧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!

听起来您发现了一个导致backboardd(iOS上的窗口服务器进程)崩溃的iOS错误。你应该向苹果公司提交一个bug,并附上backboardd的崩溃日志。好的,谢谢。我会让苹果知道的。