Closed ZevEisenberg closed 8 years ago
Thanks to @DimaVartanian, I found out that you can just use xcrun simctl erase all
. You'll probably want to quit the simulator first, so the osascript
above may be useful, but this probably doesn't need to be in snapshot. Feel free to reopen if you think otherwise.
This issue was migrated to https://github.com/fastlane/fastlane/issues/2525. Please post all further comments there.
fastlane
is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket:
I usually work with a subset of the normal simulators, or maybe with, e.g., several sizes of iPhones running iOS 8.4 and 9.2. I sometimes want to blow away the contents of my simulators, but I don't want to have to re-delete the ones I don't want, and recreate the nonstandard ones I do want. What I'd like is a way to programmatically choose Simulator → Reset Content and Settings… for each simulator that is currently enabled.
Here's how I currently do it:
But it seems like it would make perfect sense for this to be built into snapshot.