苹果提供了一个命令行工具来与iOS模拟器进行交互。在Applications/Xcode.app/Contents/Developer/usr/bin/simctl路径下,通过xcrun命令访问。
1.打开模拟器应用open"/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/"
.该命令所有的功能选项xcrunsimctlhelp
~xcrunsimctlhelpusage:simctl[--setpath][--profilespath]sub