xcode 10.2中的Simulator 3d Touch不可用选项

时间:2019-05-21 07:10:51

标签: ios swift xcode 3dtouch

我已在应用程序的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

enter image description here

0 个答案:

没有答案