From 11604347e127bab8bc7f7046266de7da8600a079 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Sun, 17 Aug 2025 19:19:56 +0900 Subject: [PATCH] Add other libraries to iOS build --- SDL3-CS.Tests.iOS/Main.cs | 3 +++ SDL3-CS.Tests.iOS/SDL3-CS.Tests.iOS.csproj | 3 +++ 2 files changed, 6 insertions(+) diff --git a/SDL3-CS.Tests.iOS/Main.cs b/SDL3-CS.Tests.iOS/Main.cs index a1a8eb1..cf18b8a 100644 --- a/SDL3-CS.Tests.iOS/Main.cs +++ b/SDL3-CS.Tests.iOS/Main.cs @@ -7,6 +7,9 @@ public class Program public static unsafe void Main(string[] args) { NativeLibrary.SetDllImportResolver(typeof(SDL3).Assembly, (_, assembly, path) => NativeLibrary.Load("@rpath/SDL3.framework/SDL3", assembly, path)); + NativeLibrary.SetDllImportResolver(typeof(SDL3_image).Assembly, (_, assembly, path) => NativeLibrary.Load("@rpath/SDL3_image.framework/SDL3_image", assembly, path)); + NativeLibrary.SetDllImportResolver(typeof(SDL3_ttf).Assembly, (_, assembly, path) => NativeLibrary.Load("@rpath/SDL3_ttf.framework/SDL3_ttf", assembly, path)); + NativeLibrary.SetDllImportResolver(typeof(SDL3_mixer).Assembly, (_, assembly, path) => NativeLibrary.Load("@rpath/SDL3_mixer.framework/SDL3_mixer", assembly, path)); SDL3.SDL_RunApp(0, null, &main, IntPtr.Zero); } diff --git a/SDL3-CS.Tests.iOS/SDL3-CS.Tests.iOS.csproj b/SDL3-CS.Tests.iOS/SDL3-CS.Tests.iOS.csproj index 9c23c76..78b0ba0 100644 --- a/SDL3-CS.Tests.iOS/SDL3-CS.Tests.iOS.csproj +++ b/SDL3-CS.Tests.iOS/SDL3-CS.Tests.iOS.csproj @@ -21,6 +21,9 @@ + + +