Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS apps don't build #15893

Closed
smaybius opened this issue Jun 2, 2024 · 1 comment
Closed

iOS apps don't build #15893

smaybius opened this issue Jun 2, 2024 · 1 comment

Comments

@smaybius
Copy link

smaybius commented Jun 2, 2024

Describe the bug

I have all the right toolchains installed, as well as Xcode, and it's my mom's M3 iMac that she's letting me borrow to test my app on, specifically https://github.com/smaybius/NoiseMachine. All I get is this error log:

iMac NoiseMachineDotNet.iOS % dotnet build
  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

To Reproduce

Create a new Avalonia project with iOS enabled
cd [project].iOS
dotnet build

Expected behavior

Build succeeds and can run on the simulator

Avalonia version

11.0.10

OS

macOS, iOS

Additional context

macOS Sonoma on a 2023 M3 iMac.

@smaybius smaybius added the bug label Jun 2, 2024
@maxkatz6
Copy link
Member

maxkatz6 commented Jun 2, 2024

Please open this issue in https://github.com/dotnet/Silk.NET repository.
This problem is not related to Avalonia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants