Reputation: 2535
Im trying to reset the iOS-Simulator using AppleScript. When I just run a script to Reset Content and Settings
it just resets the current version of the iOS-Simulator (e.g. 6.0). I need to reset each iOS version in the iOS Simulator to remove all the apps. I can only use Applescript and cant delete the apps from the Simulator using bash (deleting the app folders)
Thanks
Upvotes: 0
Views: 860
Reputation: 4959
Stian's script has not been updated for iOS 7 and the dialog isn't necessarily useful for build scripts. I've borrowed heavily from his code and written a version that is relatively future-proof to new devices and iOS versions.
https://github.com/michaelpatzer/ResetAllSimulators
Upvotes: 0
Reputation: 3664
I present,
Based on Oded Regev's code from this SO question (which was based on Jacob Rus's fine "menu_click" code)
Upvotes: 2