带有子窗格的ios13设置捆绑在真实设备上使Settings.app崩溃 [英] ios13 settings bundle with child pane crashes Settings.app on real device

查看:129
本文介绍了带有子窗格的ios13设置捆绑在真实设备上使Settings.app崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用运行Xcode 11 beta 5的运行iOS 13 beta 6的iPad mini4(A1538)... 使用XCode 11中的Single View App模板创建一个新的iOS项目.添加一个Settings.bundle,其根目录仅包含两个项目:

Using an iPad mini4 (A1538), running iOS 13 beta 6, using XCode 11 beta 5... Create a new iOS project using the Single View App template in XCode 11. Add a Settings.bundle with the root containing only two items:

  1. 儿童窗格
  2. 文本字段

创建一个子窗格plist文件,将其添加到Settings.bundle中,然后按照正常的Apple Settings Bundle指南,通过其Filename属性将其链接到根子窗格.对于子窗格,请创建两个项目:

Create a child pane plist file, add it to the Settings.bundle and link it to the root Child Pane entry via its Filename property, per normal Apple Settings Bundle guidelines. For the child pane create two items:

  1. 组说明符(似乎是必需的,否则子窗格页面中什么都不会显示)
  2. 文本字段

文本字段条目本身的名称,默认值等并不重要,请选择任何内容.生成应用程序并运行它.在模拟器上,Settings.app将按预期运行-您可以导航到子窗格并查看其上的文本字段并与之交互.当您选择子窗格控件导航到它时,在真实设备上运行它会导致Settings.app崩溃.如果从子窗格plist中删除所有控件(在我们的示例中为单个文本字段条目),则它不会崩溃.添加除组说明符以外的所有条目似乎会触发崩溃.在13之前的iOS版本上可以正常工作.

The names, default values etc of the text field entries themselves aren't important, pick anything. Build the app and run it. On the simulator the Settings.app will work as expected - you can navigate to the child pane and see and interact with the text field on it. Running it on a real device will result in the Settings.app crashing when you select the child pane control to navigate to it. If you remove all controls, in our case the single text field entry, from the child pane plist it will not crash. Adding any entries at all other than the Group Specifier seems to trigger the crash. This works fine on iOS versions prior to 13.

调试与发布版本无关紧要.似乎是一个新的iOS 13错误.有人可以重新创建并确认吗?列出了步骤,但如有必要,可以提供一个示例项目-我故意使用默认模板,进行了最少的更改以证明其不是WOMM类型问题

Debug vs release build doesn't matter. Appears to be a new iOS 13 bug. Can someone recreate and confirm? Steps are listed but a sample project can be provided if necessary - I purposefully used the default template with minimal changes to prove its not a WOMM type issue

推荐答案

NB:a导致iOS 13设置崩溃的单独错误与在类型为"PSTextFieldSpecifier"的项中使用值类型"Number"有关.

NB:a A separate bug leading to a settings crash in iOS 13 is related to using the value type "Number" in an item of type "PSTextFieldSpecifier".

这篇关于带有子窗格的ios13设置捆绑在真实设备上使Settings.app崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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