我将iOS设置应用用于我的应用设置。但是,由于将设备升级到iOS13,因此点击应会导致子设置窗格(外观,通知或PDF导出)的行之一会导致iOS设置应用崩溃,但调试器中没有调试消息。
无论应用程序是XCode10中编译的当前发行版还是XCode11中新编译的版本,这种情况都会发生。
我有以下root.plist
文件,其中包含三个子设置页面。我在这里将其显示为源而不是plist。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>StringsTable</key>
<string>Root</string>
<key>PreferenceSpecifiers</key>
<array>
<dict>
<key>Type</key>
<string>PSChildPaneSpecifier</string>
<key>Title</key>
<string>Appearance</string>
<key>File</key>
<string>Appearance</string>
</dict>
<dict>
<key>Type</key>
<string>PSChildPaneSpecifier</string>
<key>Title</key>
<string>Notifications</string>
<key>File</key>
<string>Notifications</string>
</dict>
<dict>
<key>Type</key>
<string>PSChildPaneSpecifier</string>
<key>Title</key>
<string>PDF Export</string>
<key>File</key>
<string>Export</string>
</dict>
<dict>
<key>Type</key>
<string>PSGroupSpecifier</string>
<key>Title</key>
<string>Welcome Sequence</string>
<key>FooterText</key>
<string>Select to view the welcome sequence when you switch back to the app.</string>
</dict>
<dict>
<key>Type</key>
<string>PSToggleSwitchSpecifier</string>
<key>Title</key>
<string>Reset welcome sequence</string>
<key>Key</key>
<string>resetWelcome</string>
<key>DefaultValue</key>
<false/>
</dict>
</array>
</dict>
</plist>
这是一个示例子页面Appearance.plist
:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>StringsTable</key>
<string>Appearance</string>
<key>Title</key>
<string>Appearance</string>
<key>PreferenceSpecifiers</key>
<array>
<dict>
<key>Type</key>
<string>PSGroupSpecifier</string>
<key>Title</key>
<string>Main Title</string>
</dict>
<dict>
<key>Type</key>
<string>PSTextFieldSpecifier</string>
<key>Title</key>
<string>Main Title</string>
<key>Key</key>
<string>mainTitle</string>
<key>DefaultValue</key>
<string>My Data</string>
<key>KeyboardType</key>
<string>Alphabet</string>
</dict>
// Other dictionaries omitted for brevity
</array>
</dict>
</plist>
我不知道为什么它可以在iOS12中工作,但不能在iOS13中工作,我无法从Apple上找到任何信息。
答案 0 :(得分:0)
现在,此问题在iOS 13.1的公共发行版中得到解决。我不需要重新编译我的应用程序即可工作。