title: Build Xamarin.iOS for simulator from command line
body: <p>When you build a Xamarin.iOS project for simulator from the Visual Studio for Mac it creates an <code>.app</code> file in <code>YourApp.iOS/bin/iPhoneSimulator/Debug/device-builds/iphone12.1-13.2.2/</code> directory and deploys it to a simulator. You also can install the .app file on a simulator manually.</p>
  
  <p>However, it works only from the VS4Mac UI.</p>
  
  <p>When I'm trying to build the project via <code>msbuild</code> from my Terminal it does not generate the artifacts.</p>
  
  <p>From the console logs, I can see that MSBuild spets (build targets output) does not match with the Build Output in the VS4Mac.</p>
  
  <p>Is there a way to achieve the same result (built <code>YourApp.app</code> file) but through a command line?</p>
  
  <p><em>P.S. What I really trying to achieve is to build the <code>.app</code> simulator bundle on a custom pre-build step of my Xamarin.UITest project, so it could launch the app on a simulator and run tests.</em></p>