title: Xamarin Forms: Failed to launch the ios application on the device
body: <p>Getting the following message when installing xamarin forms ios app in physical ios device.</p>
  
  <blockquote>
    <p>NSLocalizedRecoverySuggestion=Please try rebooting and reconnecting the device. (0xE8000022)., NSLocalizedFailureReason=Please try rebooting and reconnecting the device. (0xE8000022).}
    warning MT1043: Failed to launch the application using the instruments service. Will try launching the app using gdb service.
    Launching 'appname' on the device 'iPhone'
    warning HE0030: Could not mount developer tools on 'iPhone': Could not locate device support files.
    warning HE0031: Failed to mount developer tools on 'iPhone'.
    warning HE0030: Could not mount developer tools on 'iPhone': Could not locate device support files.
    warning HE0031: Failed to mount developer tools on 'iPhone'.
    error MT1007: Failed to launch the application 'appname' on the device 'My iPhone': Failed to launch the application 'apname 'My iPhone': Invalid Service Error (error: 0xe8000022). You can still launch the application manually by tapping on it.</p>
  </blockquote>
  
  <p>I am using visual studio for mac version 7.7.3(build 43), iPhone 7(12.3.1) and xcode(Version 10.1 (10B61))</p>
  
  <p>I have installed Xcode on mac, not iPhone, is Xcode need to install on iPhone for debugging the app?</p>
  
  <p>I already found the same issue on <a href="https://stackoverflow.com/questions/2160299/error-the-service-is-invalid">here</a>. Restarted iPhone, Mac and visual studio as per the solution on that thread, but that didn't help me.</p>