Upon trying to run the script, it seems to download and build SDL2, but when it gets to the universal libs part, it fails:
==> Building libSDL2 universal libs...
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: build/Release-iphoneos/libSDL2.a and build/Release-iphonesimulator/libSDL2.a have the same architectures (arm64) and can't be in the same fat output file
$ xcodebuild -version
Xcode 12.4
Build version 12D4e