如何运行 mtouch 命令在模拟器上启动Xamarin.iOS 应用程序进行自动化测试?

How to run mtouch command to launch Xamarin.iOS app on simulator for automated testing?

我是 Xamarin 的新手,我需要能够从命令行在 iOS 模拟器上启动 Xamarin iOS 应用程序。我已经尝试 运行 mtouch 但显然缺少某些东西,因为我无法在模拟器上成功启动该应用程序。我不知道我是否缺少设置任何环境变量或者是 运行 它来自错误的位置,因为我收到 "Cannot find command" 错误。

mtouch -launchsim Hello.app

mtouch 文档是 here

在 Mac 上,mtouch 二进制文件应该在此处

/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch