Great job, thank you very much for this library, you saved me a lot of time.
Only one thing is missing in the script:
mkdir -p "$SWIFT_OUTPUT_PATH"
Without -p parameter it fails, because "VendorFrameworks" directory does not exist yet.
Also you can check out my modifications I had to do in order to run it on earlier iOS versions:
dotnet/macios#8931 (comment)