Every now and then a new SDL framework version comes with a plugin update in the form of a SDL2.dll ( libSDL2.dylib on OSX ).
My plugin tries to replace the SDL2.dll. But this is not always successful and there is an error message when starting the editor that looks like this or something similar.



In such a case please delete the SDL2.dll from yourProjectDirectory\Binaries\Win64 (and Win32).
The plugin then copies the new SDL2.dll back there.

If you enter sdl in the output log editor you will see which SDL version is used



Plugin VersionSDL Version
3.42.28.5
3.x2.28.2
2.72.24.1


Mac

Since UE5.2, libraries must also work on ARM (Apple Silicon). In addition, Apple seems to have increased the security requirements and there are problems if you want to use foreign libraries if they are not signed. Unfortunately I only have an old X86 Mac Mini. I don't have a valid certificate at the moment. Therefore I show you here how to compile the SDL lib yourself. The part with the signature is from the internet and I don't know if it works.

Download a suitable SDL.
https://github.com/libsdl-org/SDL/releases Source code (zip)

Open the SDL.xcodeproj with Xcode.


If you want to sign the lib add your Apple account in Xcode. Xcode -> Preferences...


Here you can see that my certificate is no longer valid.


Select that the lib should be signed.


Select "Shared Library" and start the build with Product -> Build.




Go back to the settings and click on the small icon. You should end up in the path where the lib is.Xcode -> Preferences...




The libSDL2.dylib file can be located in up to three directories depending on the usage of the plugin.
Please replace all of them. If it is missing somewhere then the plugin will copy it to the appropriate place when the plugin is loaded.

yourProject\Plugins\SimpleController\Source\ThirdParty\Mac
yourProject\Plugins\SimpleController\Binaries\Mac
yourProject\Binaries\Mac