Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dotnet Watch Run gives me a Rosetta Error: attachment of code signature supplement failed: 1 after save

I'm having a problem with my .Net Core 3.1 Project. I'm using Docker for hosting the MS SQL Database (image azure-sql-edge) and I run it on a MacBook Pro M1 Max.

When starting the project with Dotnet Watch Run everything works ok but after a save in Visual Studio Dotnet Watch Run restarts and gives me an error:

rosetta error: /var/db/oah/0cbcd548c398ac044cf47633c4e5aa068c1a0416a18ad1861a768ac56fd1d33b/68b61c75aa9514f21db1470814e91bac8c95ea1a32f4e42fc88601dc4eeac1fc/Project.aot: attachment of code signature supplement failed: 1

And Dotnet watch gives a:

dotnet watch ❌ Exited with error code 133

Anybody has a clue what's going wrong here?

like image 742
Piet Sikkema Avatar asked Dec 05 '25 14:12

Piet Sikkema


2 Answers

I am a frontend developer and I am no expert in dotnet, it just so happened that our backend is dotnet and In my case, running dotnet clean then running my backend again dotnet run --project=MyProject help me solve this issue. Hope this helps you solve your issue.

like image 180
mcometa Avatar answered Dec 07 '25 12:12

mcometa


I got same issue on M1 with .netcore 3.1 tried serval things. but didn't solved. but, yesterday my co-worker said try run dotnet clean and It works like magic.

since before I have to reboot my pc everytime when this error occured. and now I am happy. hope this simple command helps.

once again, just run dotnet clean no other flags used.

like image 42
SpookyJelly Avatar answered Dec 07 '25 11:12

SpookyJelly



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!