简体   繁体   English

使用Applescript重置iOS模拟器

[英]Reset iOS Simulator with Applescript

Im trying to reset the iOS-Simulator using AppleScript. 我试图使用AppleScript重置iOS模拟器。 When I just run a script to Reset Content and Settings it just resets the current version of the iOS-Simulator (eg 6.0). 当我运行脚本来Reset Content and Settings它只会重置当前版本的iOS-Simulator(例如6.0)。 I need to reset each iOS version in the iOS Simulator to remove all the apps. 我需要重置iOS模拟器中的每个iOS版本以删除所有应用程序。 I can only use Applescript and cant delete the apps from the Simulator using bash (deleting the app folders) 我只能使用Applescript并且无法使用bash从模拟器中删除应用程序(删除应用程序文件夹)

Thanks 谢谢

Stian's script has not been updated for iOS 7 and the dialog isn't necessarily useful for build scripts. Stian的脚本尚未针对iOS 7进行更新,并且该对话框对于构建脚本不一定有用。 I've borrowed heavily from his code and written a version that is relatively future-proof to new devices and iOS versions. 我从他的代码中大量借用了一些版本,并且编写了一个对新设备和iOS版本相对具有前瞻性的版本。

https://github.com/michaelpatzer/ResetAllSimulators https://github.com/michaelpatzer/ResetAllSimulators

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM