1

When trying to run my Xamarin.iOS from Visual Studio on my Windows machine, while paired to my Mac, I get the error

error HE0046: Failed to install the app '...' on the device 'iOS 15.4 (19E240) - iPad (9th generation)': simctl returned exit code 72

Andy Joiner
  • 5,932
  • 3
  • 45
  • 72
  • 1
    Have you solved your problem? BTW, what is your XCode version and Visual Studio version in Windows machine? Last but not least, have you set the command line tools in your Xcode like `Xcode > Preferences > Locations, Set Command line Tools`? – Alexandar May - MSFT Oct 20 '22 at 06:22
  • @AlexandarMay-MSFT Thanks for your input. I posted my solution below. – Andy Joiner Oct 20 '22 at 10:51

2 Answers2

3

Another time, this was fixed by

Xcode menu > Preferences… > Locations tab > Select Command Line Tools dropdown I was asked for a password, then it all worked again.

Based on https://stackoverflow.com/a/54876998/270155

Andy Joiner
  • 5,932
  • 3
  • 45
  • 72
0

Start XCode on the Mac. XCode will indicate that some tools are missing to enable debugging, and prompts you to allow it to automatically install them - allow it to do this, then try running again from Visual Studio - no restarts required.

Andy Joiner
  • 5,932
  • 3
  • 45
  • 72