我已在应用程序的plist中添加了以下选项
<code>
<key>UIApplicationShortcutItems</key>
<array>
<dict>
<key>UIApplicationShortcutItemType</key>
<string>DisplayFav</string>
<key>UIApplicationShortcutItemIconType</key>
<string>UIApplicationShortcutIconTypeSearch</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Search For</string>
<key>UIApplicationShortcutItemSubtitle</key>
<string>Search for an item</string>
</dict>
<dict>
<key>UIApplicationShortcutItemType</key>
<string>WorkMore</string>
<key>UIApplicationShortcutItemIconType</key>
<string>UIApplicationShortcutIconTypeHome</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Work More</string>
<key>UIApplicationShortcutItemSubtitle</key>
<string>Working More ?</string>
</dict>
<dict>
<key>UIApplicationShortcutItemType</key>
<string>RateAction</string>
<key>UIApplicationShortcutItemIconFile</key>
<string>rate</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Rate</string>
<key>UIApplicationShortcutItemSubtitle</key>
<string>Rate this app</string>
</dict>
</array>
</code>
但是,没有显示在模拟器iPhone Xr中进行测试的选项。当我尝试测试时,该选项被禁用。 Xcode是10.2