How to delete an app from iOS Xcode Simulator?

IosXcodeIos Simulator

Ios Problem Overview


Just in case, we can delete apps by resetting contents and settings but an individual app could also be deleted from simulator in Xcode 7. This is not the case in Xcode 8. How can this be achieved? I have a forced touch trackpad, does it affect deleting the app from simulator?

Ios Solutions


Solution 1 - Ios

I struggled with this too for a while until I figured it out. I'm surprised at how hard it is to find information about this...

As you mentioned, this is only an issue when using a trackpad that supports Force Click. @pingkai.tse's answer is a good one, but for me turning off "Use TrackPad Force" does not persist - I have to turn it off every time I restart the simulator.

The trick is to click without triggering a Force Click gesture. It's hard at first, but after some practice you'll get the hang of it. On the trackpad, click very lightly on the app and hold long enough to trigger the long press. While holding, if you see the text starting to blur you are applying too much pressure and are instead triggering a Force Click.

Solution 2 - Ios

  • Open the Simulator.

  • Find the "Hardware" tab on the tool view.

  • Undo "Touch Pressure & Use TrackPad Force".

Solution 3 - Ios

For iOS 11+ simulator you should long press the app icon :)

For iOS 13+ simulator you can long press the app icon. When "Rearrange apps" suggestion appears you can tap on it or continue holding the mouse button until its automatically applied

Before iOS 11: hold alt, then press the touch pad.

Solution 4 - Ios

Step 1: On simulator, go to home screen with command + shift + H

Step 2: Click + hold on the app icon, release when an "x" button appears at the top left of the icon

Step 3: Click on the "x" button and choose Delete for any apps you want to delete

Step 4: When finished, press command + shift + H again to return the simulator to its normal state

With a Force Touch trackpad, just make sure you don't press it all the way down when clicking on the icon. Use a normal click.

Solution 5 - Ios

  1. Click on simulator

  2. On the top click on Hardware and then click on Erase all content and settings

enter image description here

Solution 6 - Ios

This will uninstall the app from the booted simulator.

xcrun simctl uninstall booted com.app.identifier

Based on simctl I have created a script RemoveIOSAppsScript that deletes all the non apple apps from the booted simulator.

Solution 7 - Ios

You have 3d touch enabled, tap and hold "VERY" lightly (just feel the click, than maintain that force or less) on the app icon on the Simulator's home... Or in the System preferences, disable the "Force click and haptic feedback", than go back on the Simulator's home and keep clicked on app icon to delete it. I prefere the second because I can't find useful this feature of my mac.

Solution 8 - Ios

  1. press command + space and search the X-code
  2. then press the enter then Opening Simulator.
  3. in Simulator top of the bar Find the "Hardware" tab on the tool view.
  4. click on Undo "Touch Pressure & Use TrackPad Force".

Solution 9 - Ios

Just click and hold the app icon with the force touch track pad enabled... Newer MBPs work well with the simulator in my experience. If not follow the advice above.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionamagainView Question on Stackoverflow
Solution 1 - IosTim PesceView Answer on Stackoverflow
Solution 2 - Iospingkai.tseView Answer on Stackoverflow
Solution 3 - IosKamen DobrevView Answer on Stackoverflow
Solution 4 - IosThePringleView Answer on Stackoverflow
Solution 5 - IosiamfaizuddinView Answer on Stackoverflow
Solution 6 - IosInder Kumar RathoreView Answer on Stackoverflow
Solution 7 - IosFederico PicciView Answer on Stackoverflow
Solution 8 - IospriyeshvadhiyaView Answer on Stackoverflow
Solution 9 - IosviscView Answer on Stackoverflow