Forum Visual Studio

Error: error MT0069: while compilng IOS app

bbanksbbanks Member ✭✭

The app has been terminated.
Launch failed. The app 'ChowderApp.iOS' could not be launched on 'iPhone 6s Plus iOS 10.2'. Error: error MT0069: The app directory '/Users/ourweb1/Library/Caches/Xamarin/mtbs/builds/ChowderApp.iOS/a0ba67018c2b1c3f3eab418af7b01492/bin/iPhoneSimulator/Debug/net.ourweb.ChowderApp.app' does not exist.. Please check the logs for more details.
The app has been terminated.

Posts

  • isescoisesco Member ✭✭

    Try the following:
    1. Delete the app in the simulator
    2. Delete the bin, obj folders
    3. Rerun your project

  • bbanksbbanks Member ✭✭

    No help.......... Why isn't it a stable env????

  • PierceBogganPierceBoggan USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    Hi @bbanks,

    Can you log an issue via Help > Send Feedback > Report a Problem? It will also be helpful if you attach a diagnostic build log to help debug the issue.

    Thanks,
    Pierce Boggan

  • bbanksbbanks Member ✭✭

    I am having the same problem for over three years now

  • iMrTidyiMrTidy USMember ✭✭

    The following helped me:
    1. Mac: $HOME/Library/Caches/Xamarin - move to bin the content (mtbs, XMA)
    2. Mac: Simulator -> Hardware -> Erase All Content and Settings...
    3. Restart Mac.
    4. Restart PC.
    5. Remove all bin and obj folders that belong to the solution.
    6. Open VS and wait when it is paired to the Mac.
    7. F5 in VS.

  • iMrTidyiMrTidy USMember ✭✭

    Today I faced the issue again and what I did yesterday did not help!
    Does anybody has a solution?

  • iMrTidyiMrTidy USMember ✭✭

    I can now complement my solution. Besides bin and obj folders I had to delete packages.

  • iMrTidyiMrTidy USMember ✭✭

    This issue came back...all of the sudden. And now nothing helps!

  • kanderwellkanderwell Member ✭✭

    I'm hitting it too, and have been for a while. I also just upgraded to the latest versions of (Windows) VS, XCode, macOS, Xamarin.iOS, etc. I've tried cleaning bin, obj, build host cache, wiping simulator - nothing works. Very annoying, because I love the Windows VS experience and can't stand Mac VS which is my current workaround.

    Interesting how Microsoft went through and neatly described all sorts of errors at their link (which I'm not allowed to post, but you can see by Googling "Xamarin.iOS errors") but they conveniently skipped right over MT0069.

  • JohnHJohnH GBMember ✭✭✭✭✭
    edited November 2019

    @kanderwell
    Do you store your code in version control? If so you could clone/check out the code to a new folder and try building from there.

  • I have just had the same error message printed in the output of Visual Studio 2019 while trying to redeploy an application on the remote iOS 13.3 (17C45) - iPhone 11 Pro.

    This was due to the use of CCleaner on Mac OS Catalina, that erases Cache files.

    I have resolved this issue by "Clean Solution" in Visual Studio 2019 (on Windows), then "Rebuild Solution".

  • clevertreeclevertree Member ✭✭

    I have the exact same issue and none of the remedies are helping. Is there any news on this error?

  • nerdotronnerdotron Member ✭✭
    edited May 11

    Same problem here, hadn't found this thread and posted a different one (https://forums.xamarin.com/discussion/181540/failed-to-install-the-app-directory-does-not-exist-when-attempting-to-build-for-ios-sim).

    Looks like something isn't being created on the mac side (whatever mtbs is). None of the suggested remedies I've found have helped, even a full uninstall and reinstall of things on the Mac side, still unable to proceed for iOS.

    My question is, what causes the mtbs directory structure to get created and how do I trigger that?

  • nerdotronnerdotron Member ✭✭

    Got it working, thanks to help from Microsoft support.

    • I was using JetBrains ReSharper which has its own build tool, I tried disabling this and building with the VS built-in build tool and it worked, it created the mtbs directory and was able to build and run the app
    • Microsoft support also pointed me to the Xamarin.iOS release notes (https://docs.microsoft.com/en-us/xamarin/ios/release-notes/) and indicated that while Xcode 11.4 is listed as being supported, 11.4.1 could possible cause issues (though normally minor version updates are OK), so something to keep in mind in the future

    But it seems to be working for me now, just have to disable ReSharper build. Note that I was using ReSharper 2020.1.

  • JeffGonzalesJeffGonzales USMember ✭✭

    I have this problem, too. I just updated Visual Studio for Mac and VS 2017 on my Windows PC. I can create a blank iOS app and run it no problem, but my own projects refuse to run. Why????

Sign In or Register to comment.