默認本地環境已OK
開啟simulator:
xcrun instruments -w 'iPhone 6 Plus'
xcrun instruments -w 'iPhone 11 (13.6)'
iPhone 6 Plus 是device
安裝app:
xcrun simctl install booted xxx.app
xxx.app 是app包的路徑
卸載app:
xcrun simctl uninstall booted com.xxx.calculator
om.xxx.calculator 是bundle
另外一種方式安裝app:這樣安裝會直接開啟app
查看模擬器列表:os-sim showdevicetypes
安裝模擬器:ios-sim launch path.app --devicetypeid com.apple.CoreSimulator.SimDeviceType.iPhone-11