Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete app from OSX simulator in Xcode

How do i delete an app from the OSX simulator like on the iOS simulator?? I want to delete an app due to the change of Core Data xcdatamodeld but i can't find a way. Thanks in advance

like image 733
r4id4 Avatar asked Mar 23 '14 11:03

r4id4


People also ask

How do I delete an app from iOS simulator?

For iOS 11+ simulator you should long press the app icon :) Before iOS 11: hold alt, then press the touch pad.

How do I clear my Xcode simulator?

To delete individual, available, simulators it's easier to do so through Xcode. Go to Window > Devices and simulators, then select the Simulators tab. You can right-click on any simulator and select 'delete' to get rid of it.

How do I completely delete an app from OSX?

Press and hold the Option (⌥) key, or click and hold any app until the apps jiggle. Click Delete button next to the app that you want to delete, then click Delete to confirm. The app is deleted immediately. Apps that don't show either didn't come from the App Store or are required by your Mac.

How do I delete data from simulator?

Or, on the home screen of the simulator, uninstall the app in the same way you would on a physical device, by pressing and holding on the application icon until an 'x' appears in the top left, and press the 'x', and select 'Delete' from the alert view. This will clear all data associated with a single app.


2 Answers

On MacOS Mojave 10.14.4 and on other MacOS as well the folder has changed and now the app is in the following location:

~/Library/Containers/com.yourcompany.yourapp/

For Big Sur the location is changed to a devices folder location:

~/Library/Developer/CoreSimulator/Devices/{device_uuid}/data/Containers/Data/Application/

like image 165
Metodij Zdravkin Avatar answered Oct 27 '22 04:10

Metodij Zdravkin


As playitgreen mentioned in one of the comments, the way to delete data relating to your OSX app is by removing the folder/.storedata file from:

~/Library/Application Support/<YOUR OSX APP BUNDLE NAME>/

for example:

~/Library/Application Support/com.yourcompany.yourapp/

All credit to playitgreen

like image 35
Andy Shephard Avatar answered Oct 27 '22 02:10

Andy Shephard