4

I am new to Xamarin and I need to be able to launch a Xamarin iOS app on iOS simulator from command line. I have tried running mtouch but obviously am missing on something as I am not able to successfully launch the app on simulator. I don't know if I am missing on setting any environment variable or am running it from a wrong location as I am getting "Cannot find command" error.

EmbCoder
  • 562
  • 1
  • 7
  • 16

1 Answers1

6
mtouch -launchsim Hello.app

mtouch docs are here

On a Mac, the mtouch binary should be here

/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch
Jason
  • 86,222
  • 15
  • 131
  • 146
  • I know the command but when I try to run it on the Mac from the Debug build folder, I get "-bash mtouch - command not found", I don't know how to fix that. I also checked the documentation but there is no mention of the same. I know mtouch.exe exists on my Windows VM under MSBuild/Xamarin/iOS but I don't know how to access that on my Mac. – EmbCoder Jun 15 '15 at 20:59
  • In the future, you'll get better answers if you include the relevant info in your Question. See my edit for the mtouch path – Jason Jun 15 '15 at 21:10
  • Cool, that worked! Apologies for not including this info in the question itself. – EmbCoder Jun 15 '15 at 21:29