dotnet / dotnet/Silk.NET

[SDL3] iOS simulator build of SDL3 has invalid native format

Open
#2,430 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
5.2k
Forks
477
Avg merge
3d 16h
Merged PRs (30d)
2

Description

# Summary
When building a target with net8.0-ios, I get the following error:

`ld: unknown file type in '~/.nuget/packages/silk.net.sdl.native/3.2.4-build875.0/runtimes/iossimulator/native/libSDL3.a'`

The file is of this type:
```
file ±/.nuget/packages/silk.net.sdl.native/3.2.4-build875.0/runtimes/iossimulator/native/libSDL3.a
±/.nuget/packages/silk.net.sdl.native/3.2.4-build875.0/runtimes/iossimulator/native/libSDL3.a: Mach-O universal binary with 2 architectures: [x86_64:current ar archive] [arm64]
±/.nuget/packages/silk.net.sdl.native/3.2.4-build875.0/runtimes/iossimulator/native/libSDL3.a (for architecture x86_64): current ar archive
±/.nuget/packages/silk.net.sdl.native/3.2.4-build875.0/runtimes/iossimulator/native/libSDL3.a (for architecture arm64): data
```

# Steps to reproduce
- Platform: iOS
- Framework Version: 8
1. Created a new project for iOS with SDL3
2. Built it

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.