Skip to content

Add macOS ARM64 (aarch64-apple-darwin) runtime support to NuGet package #551

@denys-octopus

Description

@denys-octopus

The C# bindings NuGet package currently does not include the aarch64-apple-darwin runtime, making it incompatible with Apple Silicon Macs.

Current behaviour

When attempting to use the package on macOS ARM64, the following exception is thrown:

Unhandled exception. System.DllNotFoundException: Unable to load shared library 'regorus_ffi' or one of its dependencies

   at Regorus.Internal.API.regorus_engine_new()
   at Regorus.RegorusEngineHandle.Create()
   at Regorus.Engine..ctor()
   at Program.<Main>$(String[] args) in /test/Program.cs:line 17

Expected behaviour

The NuGet package should include the libregorus_ffi.dylib native library compiled for aarch64-apple-darwin, allowing the package to work natively on Apple Silicon Macs.

Workaround

At the moment we build NuGet package ourselves, including aarch64-apple-darwin runtime target

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions