diff --git a/build/nuke/Native/SDL2.cs b/build/nuke/Native/SDL2.cs index dfd0efbb54..444341674e 100644 --- a/build/nuke/Native/SDL2.cs +++ b/build/nuke/Native/SDL2.cs @@ -127,7 +127,11 @@ static readonly (string Sdk, string Arch, string Rid, string Args)[] iPhoneConfi EnsureCleanDirectory(Path.GetDirectoryName(@out)); InheritedShell($"lipo -create -output \"{@out}\" \"{@in}\"").AssertZeroExitCode(); - InheritedShell($"strip -Sx \"{@out}\"").AssertZeroExitCode(); + InheritedShell($"strip -Sx -no_code_signature_warning \"{@out}\"").AssertZeroExitCode(); + + // Re-sign, as lipo and stripping invalidates the signature + InheritedShell($"codesign --remove-signature \"{@out}\"").AssertZeroExitCode(); + InheritedShell($"codesign --sign - \"{@out}\"").AssertZeroExitCode(); } }