Hi there,
I've been trying to run my Azure Functions locally for a lot longer than I'd like to admit and now I find myself in desperate need of help.
I had no problems running the functions locally on the my old Mac (Intel) but now that i switched to the new M1 version with arm64 architecture, I find this error when i try to build:
/Users/raf/.nuget/packages/microsoft.net.sdk.functions/3.0.3/build/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : Failed to load /usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.0.3/libhostpolicy.dylib, error: dlopen(/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.0.3/libhostpolicy.dylib, 0x0001): tried: '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.0.3/libhostpolicy.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/libhostpolicy.dylib' (no such file), '/usr/lib/libhostpolicy.dylib' (no such file) [/Users/raf/UnityProjects/Fight/Azure/Azure.csproj] /Users/raf/.nuget/packages/microsoft.net.sdk.functions/3.0.3/build/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : An error occurred while loading required library libhostpolicy.dylib from [/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.0.3] [/Users/raf/UnityProjects/Fight/Azure/Azure.csproj] /Users/raf/.nuget/packages/microsoft.net.sdk.functions/3.0.3/build/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : [/Users/raf/UnityProjects/Fight/Azure/Azure.csproj] /Users/raf/.nuget/packages/microsoft.net.sdk.functions/3.0.3/build/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : Metadata generation failed. [/Users/raf/UnityProjects/Fight/Azure/Azure.csproj]
I've tried installing different versions of .NET and even considered migrating the functions version in Azure to v4 but as this is beyond my pay-grade it only lead me to more errors.
Anything that could point me to the right path would be much appreciated!
Thanks!