dotnet / Silk.NET

The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.
https://dotnet.github.io/Silk.NET
MIT License
3.88k stars 378 forks source link

Can't build for iOS #2209

Closed smaybius closed 4 weeks ago

smaybius commented 4 weeks ago

Summary

Forwarded from: https://github.com/AvaloniaUI/Avalonia/issues/15893#issue-2329738493

  Determining projects to restore...
  All projects are up-to-date for restore.
  Detected signing identity:

    Bundle Id: companyName.AvaloniaTest
    App Id: companyName.AvaloniaTest
  NoiseMachineDotNet -> /Users/anon/NoiseMachine/NoiseMachineDotNet/bin/Debug/net8.0/NoiseMachineDotNet.dll
  NoiseMachineDotNet.iOS -> /Users/anon/NoiseMachine/NoiseMachineDotNet.iOS/bin/Debug/net8.0-ios/iossimulator-arm64/NoiseMachineDotNet.iOS.dll
  Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
  Optimizing assemblies for size. This process might take a while.
  Tool /usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-arm64.Cross.iossimulator-arm64/8.0.6/Sdk/../tools/mono-aot-cross execution finished (exit code = 134).

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/17.2.8053/targets/Xamarin.Shared.Sdk.targets(1215,3): error : Failed to AOT compile Silk.NET.OpenAL.dll, the AOT compiler exited with code 134. [/Users/anon/NoiseMachine/NoiseMachineDotNet.iOS/NoiseMachineDotNet.iOS.csproj]
  Tool /usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-arm64.Cross.iossimulator-arm64/8.0.6/Sdk/../tools/mono-aot-cross execution finished (exit code = 134).

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/17.2.8053/targets/Xamarin.Shared.Sdk.targets(1215,3): error : Failed to AOT compile aot-instances.dll, the AOT compiler exited with code 134. [/Users/anon/NoiseMachine/NoiseMachineDotNet.iOS/NoiseMachineDotNet.iOS.csproj]

Build FAILED.

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/17.2.8053/targets/Xamarin.Shared.Sdk.targets(1215,3): error : Failed to AOT compile Silk.NET.OpenAL.dll, the AOT compiler exited with code 134. [/Users/anon/NoiseMachine/NoiseMachineDotNet.iOS/NoiseMachineDotNet.iOS.csproj]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/17.2.8053/targets/Xamarin.Shared.Sdk.targets(1215,3): error : Failed to AOT compile aot-instances.dll, the AOT compiler exited with code 134. [/Users/anon/NoiseMachine/NoiseMachineDotNet.iOS/NoiseMachineDotNet.iOS.csproj]
    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:20.50

Steps to reproduce

If you know how to fix this issue, please submit a pull request instead!

Perksey commented 4 weeks ago

Hi there, can you please provide a minimum reproduction project so we can help connect you with the right people? (i.e. one C# file and a list of packages)

smaybius commented 4 weeks ago

Hi there, can you please provide a minimum reproduction project so we can help connect you with the right people? (i.e. one C# file and a list of packages)

dotnet new avalonia.xplat cd [project].iOS dotnet restore dotnet build No problem there.

I reinitialized my project with the same default settings, and moved my work to the new project, but I'm getting the same build error. https://github.com/smaybius/NoiseMachine

alexrp commented 4 weeks ago

Can you try running dotnet build -v:diag and see if there's more information about the AOT error than just the exit code?

smaybius commented 4 weeks ago

iosbuildlog.txt

Perksey commented 4 weeks ago

Thanks, this is being tracked here: dotnet/runtime#94841