Running a default Simulator:
open -a Simulator.app
List of devices:
xcrun simctl list
== Device Types ==
iPhone 6s (com.apple.CoreSimulator.SimDeviceType.iPhone-6s)
iPhone 6s Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus)
iPhone SE (1st generation) (com.apple.CoreSimulator.SimDeviceType.iPhone-SE)
iPhone 7 (com.apple.CoreSimulator.SimDeviceType.iPhone-7)
iPhone 7 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus)
iPhone 8 (com.apple.CoreSimulator.SimDeviceType.iPhone-8)
iPhone 8 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus)
iPhone X (com.apple.CoreSimulator.SimDeviceType.iPhone-X)
iPhone Xs (com.apple.CoreSimulator.SimDeviceType.iPhone-XS)
iPhone Xs Max (com.apple.CoreSimulator.SimDeviceType.iPhone-XS-Max)
iPhone Xʀ (com.apple.CoreSimulator.SimDeviceType.iPhone-XR)
iPhone 11 (com.apple.CoreSimulator.SimDeviceType.iPhone-11)
iPhone 11 Pro (com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro)
iPhone 11 Pro Max (com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro-Max)
iPhone SE (2nd generation) (com.apple.CoreSimulator.SimDeviceType.iPhone-SE--2nd-generation-)
iPhone 12 mini (com.apple.CoreSimulator.SimDeviceType.iPhone-12-mini)
iPhone 12 (com.apple.CoreSimulator.SimDeviceType.iPhone-12)
iPhone 12 Pro (com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro)
iPhone 12 Pro Max (com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro-Max)
iPhone 13 Pro (com.apple.CoreSimulator.SimDeviceType.iPhone-13-Pro)
iPhone 13 Pro Max (com.apple.CoreSimulator.SimDeviceType.iPhone-13-Pro-Max)
iPhone 13 mini (com.apple.CoreSimulator.SimDeviceType.iPhone-13-mini)
iPhone 13 (com.apple.CoreSimulator.SimDeviceType.iPhone-13)
iPhone SE (3rd generation) (com.apple.CoreSimulator.SimDeviceType.iPhone-SE-3rd-generation)
iPhone 14 (com.apple.CoreSimulator.SimDeviceType.iPhone-14)
iPhone 14 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-14-Plus)
iPhone 14 Pro (com.apple.CoreSimulator.SimDeviceType.iPhone-14-Pro)
iPhone 14 Pro Max (com.apple.CoreSimulator.SimDeviceType.iPhone-14-Pro-Max)
iPhone 15 (com.apple.CoreSimulator.SimDeviceType.iPhone-15)
iPhone 15 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-15-Plus)
iPhone 15 Pro (com.apple.CoreSimulator.SimDeviceType.iPhone-15-Pro)
iPhone 15 Pro Max (com.apple.CoreSimulator.SimDeviceType.iPhone-15-Pro-Max)
iPod touch (7th generation) (com.apple.CoreSimulator.SimDeviceType.iPod-touch--7th-generation-)
iPad mini 4 (com.apple.CoreSimulator.SimDeviceType.iPad-mini-4)
iPad Air 2 (com.apple.CoreSimulator.SimDeviceType.iPad-Air-2)
iPad Pro (9.7-inch) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-)
iPad Pro (12.9-inch) (1st generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro)
iPad (5th generation) (com.apple.CoreSimulator.SimDeviceType.iPad--5th-generation-)
iPad Pro (12.9-inch) (2nd generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-)
iPad Pro (10.5-inch) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--10-5-inch-)
iPad (6th generation) (com.apple.CoreSimulator.SimDeviceType.iPad--6th-generation-)
iPad (7th generation) (com.apple.CoreSimulator.SimDeviceType.iPad--7th-generation-)
iPad Pro (11-inch) (1st generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--11-inch-)
iPad Pro (12.9-inch) (3rd generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---3rd-generation-)
iPad Pro (11-inch) (2nd generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--11-inch---2nd-generation-)
iPad Pro (12.9-inch) (4th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---4th-generation-)
iPad mini (5th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-mini--5th-generation-)
iPad Air (3rd generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Air--3rd-generation-)
iPad (8th generation) (com.apple.CoreSimulator.SimDeviceType.iPad--8th-generation-)
iPad (9th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-9th-generation)
iPad Air (4th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Air--4th-generation-)
iPad Pro (11-inch) (3rd generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro-11-inch-3rd-generation)
iPad Pro (12.9-inch) (5th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro-12-9-inch-5th-generation)
iPad Air (5th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Air-5th-generation)
iPad (10th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-10th-generation)
iPad mini (6th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-mini-6th-generation)
iPad Pro (11-inch) (4th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro-11-inch-4th-generation-8GB)
iPad Pro (11-inch) (4th generation) (16GB) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro-11-inch-4th-generation-16GB)
iPad Pro (12.9-inch) (6th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro-12-9-inch-6th-generation-8GB)
iPad Pro (12.9-inch) (6th generation) (16GB) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro-12-9-inch-6th-generation-16GB)
Apple TV (com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p)
Apple TV 4K (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-4K)
Apple TV 4K (at 1080p) (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-1080p)
Apple TV 4K (2nd generation) (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-2nd-generation-4K)
Apple TV 4K (2nd generation) (at 1080p) (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-2nd-generation-1080p)
Apple TV 4K (3rd generation) (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-3rd-generation-4K)
Apple TV 4K (3rd generation) (at 1080p) (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-3rd-generation-1080p)
Apple Watch Series 2 (38mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-38mm)
Apple Watch Series 2 (42mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-42mm)
Apple Watch Series 3 (38mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-38mm)
Apple Watch Series 3 (42mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-42mm)
Apple Watch Series 4 (40mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-4-40mm)
Apple Watch Series 4 (44mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-4-44mm)
Apple Watch Series 5 (40mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-40mm)
Apple Watch Series 5 (44mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-44mm)
Apple Watch SE (40mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-SE-40mm)
Apple Watch SE (44mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-SE-44mm)
Apple Watch Series 6 (40mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-6-40mm)
Apple Watch Series 6 (44mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-6-44mm)
Apple Watch Series 7 (41mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-7-41mm)
Apple Watch Series 7 (45mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-7-45mm)
Apple Watch SE (40mm) (2nd generation) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-SE-40mm-2nd-generation)
Apple Watch SE (44mm) (2nd generation) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-SE-44mm-2nd-generation)
Apple Watch Series 8 (41mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-8-41mm)
Apple Watch Series 8 (45mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-8-45mm)
Apple Watch Ultra (49mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Ultra-49mm)
Apple Watch Series 9 (41mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-9-41mm)
Apple Watch Series 9 (45mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-9-45mm)
Apple Watch Ultra 2 (49mm) (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Ultra-2-49mm)
== Runtimes ==
iOS 17.4 (17.4 - 21E213) - com.apple.CoreSimulator.SimRuntime.iOS-17-4
== Devices ==
-- iOS 17.4 --
iPhone SE (3rd generation) (ACB3E91C-7BAD-46AD-AB87-31DBCCFA3CDD) (Shutdown)
iPhone 15 (E305CE68-0239-4F03-AFA3-86603B19427D) (Shutdown)
iPhone 15 Plus (529D20EA-122D-4EF1-AAF4-CD20C9453306) (Shutdown)
iPhone 15 Pro (CC6B9B10-8E98-40FA-AD0E-2E832DBC4724) (Booted)
iPhone 15 Pro Max (3C1FA515-F12C-46C6-BB9D-93DC66F51842) (Shutdown)
iPad Air (5th generation) (0F32973B-487E-41FB-B978-A79949942E0F) (Shutdown)
iPad (10th generation) (D961ACB9-9F92-4B55-9450-E473CD8C66A8) (Shutdown)
iPad mini (6th generation) (0D3FC586-5CD8-4DDC-BB97-8F16A9917D29) (Shutdown)
iPad Pro (11-inch) (4th generation) (B496C62C-52FD-4BE0-B536-5B2CEB51B0D4) (Shutdown)
iPad Pro (12.9-inch) (6th generation) (40DB86A9-4ACE-4483-A9BD-4A69C0BC896B) (Shutdown)
== Device Pairs ==
Running iPhone 7 Plus
:
xcrun simctl create iPhone-7-Plus com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus
Could not find an available runtime for device type 'iPhone 7 Plus'
It probably requires 15th runtime:
xcrun simctl list runtimes
iOS 17.4 (17.4 - 21E213) - com.apple.CoreSimulator.SimRuntime.iOS-17-4
Installed with XCode->Settings->Platforms:
crun simctl create "iPhone 7 Plus" com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus
No runtime specified, using 'iOS 15.5 (15.5 - 19F70) - com.apple.CoreSimulator.SimRuntime.iOS-15-5'
4CA96B74-95A4-4E55-ABA3-61EE13C5E395
xcrun simctl list devices available
== Devices ==
-- iOS 15.5 --
iPhone 7 Plus (4CA96B74-95A4-4E55-ABA3-61EE13C5E395) (Shutdown)
iPhone 13 Pro (3A7C20F5-B762-4A82-991E-BC8A8121D337) (Shutdown)
iPhone 13 Pro Max (DE03B210-55E7-4F52-A35B-9EA1596B81B3) (Shutdown)
iPhone 13 mini (3D6C85DB-E2BE-4407-9132-52875A6CE8D9) (Shutdown)
iPhone 13 (602EDBDA-F0E9-4240-9BDA-8BFF698C0C3E) (Shutdown)
iPhone SE (3rd generation) (F49E6FB6-5568-45A5-A8EB-090CE5FD4D50) (Shutdown)
iPod touch (7th generation) (0E567F77-EA75-4FB3-B0F7-BCAAD23E478C) (Shutdown)
iPad Pro (9.7-inch) (1A88386B-F9CC-4900-8AB1-222B1FD7F645) (Shutdown)
iPad (9th generation) (0E56DA7B-8F67-407E-A208-4E1C07E4B5BC) (Shutdown)
iPad Pro (11-inch) (3rd generation) (ED7E5DDB-7DD4-484E-A8B8-639A82282057) (Shutdown)
iPad Pro (12.9-inch) (5th generation) (BEFBBB61-CEB1-4990-8E2B-E477C757E482) (Shutdown)
iPad Air (5th generation) (7435A49E-DC59-4687-88B0-3D9B719B9E62) (Shutdown)
iPad mini (6th generation) (6CEE1477-A918-43E0-B6C4-3B86AE6B654F) (Shutdown)
-- iOS 17.4 --
iPhone SE (3rd generation) (ACB3E91C-7BAD-46AD-AB87-31DBCCFA3CDD) (Shutdown)
iPhone 15 (E305CE68-0239-4F03-AFA3-86603B19427D) (Shutdown)
iPhone 15 Plus (529D20EA-122D-4EF1-AAF4-CD20C9453306) (Shutdown)
iPhone 15 Pro (CC6B9B10-8E98-40FA-AD0E-2E832DBC4724) (Shutdown)
iPhone 15 Pro Max (3C1FA515-F12C-46C6-BB9D-93DC66F51842) (Shutdown)
iPad Air (5th generation) (0F32973B-487E-41FB-B978-A79949942E0F) (Shutdown)
iPad (10th generation) (D961ACB9-9F92-4B55-9450-E473CD8C66A8) (Shutdown)
iPad mini (6th generation) (0D3FC586-5CD8-4DDC-BB97-8F16A9917D29) (Shutdown)
iPad Pro (11-inch) (4th generation) (B496C62C-52FD-4BE0-B536-5B2CEB51B0D4) (Shutdown)
iPad Pro (12.9-inch) (6th generation) (40DB86A9-4ACE-4483-A9BD-4A69C0BC896B) (Shutdown)
open -a Simulator --args -CurrentDeviceUDID 4CA96B74-95A4-4E55-ABA3-61EE13C5E395
xcrun simctl rename "iPhone 7 Plus" "iPhone-7-Plus"
find . -iname "*.app"
./Qt_6_7_0_iOS_Release_Simulator/Debug-iphonesimulator/Classic Lines.app
xcrun simctl install iPhone-7-Plus ./Qt_6_7_0_iOS_Release_Simulator/Debug-iphonesimulator/Classic\ Lines.app
xcrun simctl launch iPhone-7-Plus com.sharlines.lines
xcrun simctl terminate iPhone-7-Plus com.sharlines.lines
xcrun simctl uninstall iPhone-7-Plus com.sharlines.lines
Simulators for creating screenshots:
open -a Simulator --args -CurrentDeviceUDID 3C1FA515-F12C-46C6-BB9D-93DC66F51842
xcrun simctl install "iPhone 15 Pro Max" ./Qt_6_7_0_iOS_Release_Simulator/Debug-iphonesimulator/Standard\ Lines.app
open -a Simulator --args -CurrentDeviceUDID 4CA96B74-95A4-4E55-ABA3-61EE13C5E395
xcrun simctl install iPhone-7-Plus ./Qt_6_7_0_iOS_Release_Simulator/Debug-iphonesimulator/Standard\ Lines.app
open -a Simulator --args -CurrentDeviceUDID 40DB86A9-4ACE-4483-A9BD-4A69C0BC896B
xcrun simctl install "iPad Pro (12.9-inch) (6th generation)" ./Qt_6_7_0_iOS_Release_Simulator/Debug-iphonesimulator/Standard\ Lines.app
“iPhone 15 Pro Max” stopped working after XCode update, so I switched to different UDID (see below).
Simulators for creating screenshots in Russian:
I was unable to launch my app as follows:
xcrun simctl launch "iPhone 15 Pro Max" com.sharlines.balls -AppleLanguages "(ru-RU)"
So I switched system language:
open -a Simulator --args -CurrentDeviceUDID 201D6842-4F1A-45AE-ACFD-DBA49ED27237
xcrun simctl install "iPhone 15 Pro Max" ./Qt_6_7_0_iOS_Release_Simulator/Debug-iphonesimulator/Standard\ Lines.app
xcrun simctl launch "iPhone 15 Pro Max" com.sharlines.balls
xcrun simctl terminate "iPhone 15 Pro Max" com.sharlines.balls
open -a Simulator --args -CurrentDeviceUDID 4CA96B74-95A4-4E55-ABA3-61EE13C5E395
xcrun simctl install iPhone-7-Plus ./Qt_6_7_0_iOS_Release_Simulator/Debug-iphonesimulator/Standard\ Lines.app
open -a Simulator --args -CurrentDeviceUDID 40DB86A9-4ACE-4483-A9BD-4A69C0BC896B
xcrun simctl install "iPad Pro (12.9-inch) (6th generation)" ./Qt_6_7_0_iOS_Release_Simulator/Debug-iphonesimulator/Standard\ Lines.app
xcrun simctl launch "iPad Pro (12.9-inch) (6th generation)" com.sharlines.balls
Installing a TestFlight app on iOS iPhone Simulator
https://stackoverflow.com/questions/11942477/installing-a-testflight-app-on-ios-iphone-simulator-registration-failed
The app you are trying to install is an app compiled for arm architecture, which is different from the simulator (the simulator is not an emulator). The simulator only runs x86 apps compiled for it.
simctl: управление симуляторами Apple через терминал
https://habr.com/ru/articles/506504/
xcrun simctl list devices available
xcrun simctl list -v devices
xcrun simctl list -v
xcrun simctl io booted screenshot ~/Pictures/app-screenshot.png
xcrun simctl io booted recordVideo ~/Movies/app-preview.mp4
xcrun simctl install booted ~/Циан.app
xcrun simctl launch booted ru.cian.mobile
https://suelan.github.io/2020/02/05/iOS-Simulator-from-the-Command-Line/
xcrun simctl create “ry” “iPhone 11 Pro Max” iOS13.3
BE9A72F0-5793-447B-BEC4-63A73242BED5
iOS version by device
https://iosref.com/ios
iOS Resolution
https://www.ios-resolution.com/
Another option to make screenshots is Nvidia DSR:
https://superuser.com/questions/1853874/how-to-create-a-window-of-size-2048×2732-on-my-small-monitor
https://stackoverflow.com/a/55007711/2394762
Video: https://www.youtube.com/watch?v=e-J4nyvunW4