Launching iPhone 5 simulator fails with: An error occurred while executing MTouch.

aramiesaramies USMember ✭✭

When deploying to iPhone 5 make sure to select [i386 + x86_64] under iOS build as per:

There were allot of old posts which related to bugs and other things not relevant to my case. This is another case of ambiguous errors in Xamarin.

  • In visual studio you will see:

    Launch failed. The app '' could not be launched on 'iPhone 5 iOS 10.2'. Error: An error occurred while executing MTouch. Please check the logs for more details.
    The app has been terminated.

  • To make sure you are having the same issue: Check in your log folder (change to your user id in the path): C:\Users\serge\AppData\Local\Xamarin\Logs\14.0 you will see *.Ide.svclog files, open the latest one with MS Service Trace Viewer (or notepad)

  • You should see this error:

    An error occured on the receiver while executing a post for topic xvs/idb/ and client vs27944serge
    Xamarin.Messaging.Exceptions.MessagingRemoteException: An error occured on client IDB4226 while executing a reply for topic xvs/idb/ ---> Xamarin.Messaging.Exceptions.MonotouchException: An error occurred while executing MTouch
    at Xamarin.Messaging.IDB.MTouch+d__8.MoveNext () [0x0024a] in :0
    --- End of stack trace from previous location where exception was thrown ---


  • AshleyGazichAshleyGazich USMember, Xamarin Team Xamurai

    Hi Sergey, could you check the following?

    1. Xamarin latest Stable is installed for both Mac and Visual Studio
    2. A new blank project from template builds and deploys without issue
    3. Your project builds successfully using Xamarin Studio Mac
    4. Your project builds successfully using Visual Studio

    Should build fail, please provide your verbose build output. If it is possible to share a minimized runnable test case demonstrating the issue and steps to reproduce, that would be great. You may also want to test if this is resolved with the Cycle 9 builds currently available in Beta by changing the updates channel for Mac and Visual Studio. You can roll back to Stable at any time by reverting the channel. Thanks!

Sign In or Register to comment.