visual studio for Mac unity execution failed - unity3d

I am running the latest version of Visual Studio and the latest version of unity. When I open the project using Visual Studio for Mac, I am able to rebuild the app.
But, when I try to start debugging, I am getting Execution Failed without any explanation or build output.
I am able to run the app successfully on iOS through Xcode, although the iPad is refusing to start the app automatically and I have to open it manually.
The issue is that , I can't start the app on Visual Studio for Mac.

Apparently, If you open multiple instances of Unity, Visual Studio for Mac will get confused and will not know which project to attach to.
Having one instance solved the issue for me.

Related

Can't debug Maui project with target project as Windows

I've tested out my Maui project on Android and it works perfectly fine.
Now, I've been trying to test it out on Windows, but as soon as I start the application, the application closes. The output log also shows 2147942405 exit code. I've tried to run the application as admin and I've also opened up Visual Studio as admin but it's not been a help.
Is there something else I should do?
At first, did you try to create a new maui project and debug it on the windows? In addition, is your pc's system windows 10? If so, it seems an existed issue which is about MAUI apps crash on launch on Windows after Visual Studio update - code 2147942405 on the github.
And you can try the workaround in this issue which tried to download the Microsoft.WindowsAppRuntime.Redist.1.2.zip and run its WindowsAppRuntimeInstall.exe (as admin) .
Finally, you can follow up this issue on the github.

MAUI MyApp.WinUI isn't running properly

I am using Visual Studio 2022 Preview where I created a plain MAUI .NET Project. The project runs on Android Emulator properly but the WinUI App doesn't run properly. It shows the message below. But I checked starting project and Debug Settings. Can anyone give me suggestions to run the MyApp.WinUI project on Visual Studio 2022 Preview?
This is a known limitation at this time. Have a look at David's blog post at the end
At the time of release, we are troubleshooting the latest Windows App SDK Single-project MSIX extension for Visual Studio 2022 and .NET MAUI to address a failure to debug. You can successfully deploy the Windows app directly and run it from the Start menu.
From Visual Studio, right-click on your WinUI project and click Deploy. That will make it show up in your Start Menu, you can start it from there. Once started, in Visual Studio you can go to the Debug menu and Attach to Process. Find the process of your app and attach the debugger.

Visual studios connection gets disconnected with iOS

When I try to run my xamarin.iOS project in some devices it says .. upload succeeded and app get disconnected from visual studio but my expectation is I should be able to debug the app from visual studio.
This doesn't happen with all devices.
I verified there is no code signer or provisioning profile problem with these devices.
Any ideas on how to solve this issue (I am using visual studio 2017 for mac )
Clear the temp files
Restart the mac
solved

Hololens device build fails to not finding Assembly-CSharp-firstpass.dll

I'm trying to build Unity application for Hololens device on Visual Studio 2017 and I'm getting the following errors:
Metadata file '...\GeneratedProjects\UWP\Assembly-CSharp-firstpass\bin\x86\Release\Assembly-CSharp-firstpass.dll' could not be found
Metadata file '...\GeneratedProjects\UWP\Assembly-CSharp\bin\x86\Release\Assembly-CSharp.dll'
I'm aware of the similar question here but uninstalling and installing the latest versions of both Unity and VS did not help. Neither did starting a completely new project. I'm using now the latest versions of Unity (2017.1.0f3) and Visual Studio 2017 (15.3.0).
I've tried uninstalling both applications. Everything was working fine yesterday but then I downloaded additional components to Visual Studio (ASP.NET) and the Hololens build stopped working. Any idea how I could fix the issue?
I can see the Assembly-CSharp-firstpass.dll in Unprocessed folder under the path it's searching for it and even tried to copy it to the correct path but it did not help. I have also tried to build the project without ticking the Unity C# Projects but I get a different error then.
Update
I found this post on Unity forums and I think it's the same issue I have: https://forum.unity3d.com/threads/net-scripting-backend-and-visual-studio-2017-3-incompatibility.487833/
A workaround for this issue is to manually modifiying The "UAP,Version=v10.0.xxx" to "UAP,Version=v10.0" In the project.lock.json files of the GeneratedProjects.
Other solutions to this problem include a downgrade to Visual Studio 2015, or using the patch that the link you provided has.

Visual Studio Code Won't Run on Mac 10.8.5

I just downloaded a fresh copy of VSCode-darwin.zip from https://code.visualstudio.com/, upzipped, dragged to my Applications directory, and tried to run it. After the initial "Verifying Visual Studio App" window ran, the dock icon bounced a few times then vanished and the app didn't load. Subsequent attempts yielded the same result. Anyone else experience this? Any known conflicts or dependencies for 10.8.5?
VS Code does not support Mac OS X 10.8 and below. We have a dependency to Electron and updated recently which caused this.