Skip to content
This repository was archived by the owner on Feb 25, 2023. It is now read-only.
This repository was archived by the owner on Feb 25, 2023. It is now read-only.

Add support for arm64 for macos #78

@nickmeinhold

Description

@nickmeinhold

Thanks for making this plugin!

I'm on an ARM mac and had build errors about needing an arm64 binary when I tried to use the plugin.

I checked and running file macos/libgit2-1.5.0.dylib gives:

macos/libgit2-1.5.0.dylib: Mach-O 64-bit dynamically linked shared library x86_64

I built a universal binary with libgit2 and replaced the libgit2dart/macos/libgit2-1.5.0.dylib but then the build wasn’t finding the dylib until I put a (slightly differently named) dylib in a folder the app was checking in but then was still getting a different error that said:

“Failed to open the library. Make sure that libgit2 library is bundled with the application.”

I did get a dylib that I built to work by putting it straight in an empty project (ie. no plugin) so I guess I must have messed up the libgit2dart project config somehow. I've given up for now but happy to have another go if it's helpful.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions