Skip to content

Running .NET 7 single file binary on Apple M1 chip causes app to be "killed" #79267

Closed
@vitek-karas

Description

@vitek-karas

Discussed in #79229

Originally posted by rcdailey December 5, 2022
I have a Github Workflow that compiles my .NET 7 console application using a windows agent. It runs this in a powershell script:

dotnet publish MyProject.csproj `
    --output publish `
    --configuration Release`
    --runtime osx-arm64 `
    --self-contained true `
    -p:PublishSingleFile=true `
    -p:IncludeNativeLibrariesForSelfExtract=true `
    -p:PublishReadyToRunComposite=true `
    -p:PublishReadyToRunShowWarnings=true `
    -p:EnableCompressionInSingleFile=true 

This is the platform I'm running on:

enter image description here

My application is not signed, but Mac lets me bypass that for testing purposes. Eventually it just fails like so:

[1]    37470 killed     ./myconsoleapp --help

I get no further diagnostics. What steps can I take to further diagnose the issue? Why is osx-arm64 not working but osx-x64 works just fine?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions