docker.net-coreapple-m1rosetta

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?


Solution

  • I suddenly got the similiar error today on M3 max macos14.4

    rosetta error: Attachment of code signature supplement failed: 1 
     /var/db/oah/5fd8813f0c3ffa1e2f684110523a82d216143643f91844d708ed72cd11103a8e/c197213a5623d0254c7539924afa27796d4d24a615775af82b17cd6cdaf0d85a/dotnet.aot[1]    14470 abort      /usr/local/share/dotnet/x64/dotnet clean
    

    Reinstall sdk of dotnet3.1 works for me