Is there a straightforward way to clean up the directory where xcode deploys an app when building for the iPhone simulator? I have a sqlite database that gets copied into t
As I was explaining in a comment under the validated answer:
I was testing adding and removing calendar subscriptions. On a real device, you can remove a calendar subscription in Settings, Accounts but this menu does not exist in iOS Simulator and I did not want to reset the whole simulator.
So I ended up locally versioning my Device folder with git and perform the following commands to remove a calendar subscription after I added it:
$ git reset HEAD --hard
$ git clean -f
So the steps are:
~/Library/Developer/CoreSimulator/Devices/ and do a cd to it, then git init to create a git repositorygit commit -a "Message"git reset --hard HEADgit commit are gone.