🛠️
iOS Simulator にプリインストールされているアプリ
$ xcrun simctl listapps {DEVICE_UDID}
で調べられる。
| App名 | App Identifier |
|---|---|
| Watch | com.apple.Bridge |
| Files | com.apple.DocumentsApp |
| Health | com.apple.Health |
| Maps | com.apple.Maps |
| Contacts | com.apple.MobileAddressBook |
| Messages | com.apple.MobileSMS |
| Wallet | com.apple.Passbook |
| Settings | com.apple.Preferences |
| Xcode Previews | com.apple.dt.XcodePreviews |
| Calendar | com.apple.mobilecal |
| Safari | com.apple.mobilesafari |
| Photos | com.apple.mobileslideshow |
| News | com.apple.news |
| Reminders | com.apple.reminders |
| Shortcuts | com.apple.shortcuts |
| Web | com.apple.webapp |
これがわかればTerminalから任意のアプリを起動したり終了したりできる。
$ xcrun simctl launch {DEVICE_UDID} {App Identifier}
$ xcrun simctl terminate {DEVICE_UDID} {App Identifier}
UDIDはxctraceで調べられる。
$ xcrun xctrace list devices 2>&1 | grep -v Apple | grep "iPhone 13"
Discussion