0

Is it possible to execute an xcrun simctl command from XCTest when targeting iOS?

This is possible when the target is macOS via Process(), but that doesn't exist for an iOS Test Host. And trying to dynamically load the class crashes the bundle.

Joe Masilotti
  • 16,815
  • 6
  • 77
  • 87

1 Answers1

0

I would recommend using SBTUITestTunnel

https://github.com/Subito-it/SBTUITestTunnelHost https://github.com/Subito-it/SBTUITestTunnel

This tool allows running the shell command on the host device while running tests on your simulators.

Roman Zakharov
  • 2,185
  • 8
  • 19