Xcode 6删除模拟器上所有app

###在终端上执行如下命令

xcrun simctl list | grep -oh '[A-Z0-9]\{8\}-[A-Z0-9]\{4\}-[A-Z0-9]\{4\}-[A-Z0-9]\{4\}-[A-Z0-9]\{12\}' | xargs -I{} xcrun simctl erase {}

这样所有模拟器里的数据被会被还原出事状态,又可以清理很多空间!

参考链接:http://stackoverflow.com/questions/692064/cleaning-up-the-iphone-simulator