Fail to build PythonScriptPlugin on Mac

For some reason UE4Editor-PythonScriptPlugin.dylib consistently fails to build on Mac for me. I’ve had this problem in the previews as well, but usually these kinds of issues get resolved by the time the final release comes out, it does look like this one slipped through though. The output from the compile looks like this:

[1453/1951] Link UE4Editor-Advertising.dylib
[1454/1951] Link UE4Editor-BlankPlugin.dylib
Copying libsteam_api.dylib to app bundle
Copying RadioEffectUnit.component to app bundle
[1457/1951] Link UE4Editor-ActorSequenceEditor.dylib
[1458/1951] Link UE4Editor
[1459/1951] Link UE4Editor-MessagingDebugger.dylib
ERROR: UBT ERROR: Failed to produce item: /Users/Francois/Development/UnrealEngine-4.19.0-release/Engine/Plugins/Experimental/PythonScriptPlugin/Binaries/Mac/UE4Editor-PythonScriptPlugin.dylib
Total build time: 2957.12 seconds (Local executor: 0.00 seconds)
** BUILD FAILED **

During the previews, I originally assumed it was something like a path name length being too long or something like that as it doesn’t seem to be the compile failing, but the linking, however, even placing the engine source in a short path like /UE4 didn’t help, so that’s clearly not the issue.

I’ve been working around this by deleting the plugin and regenerating the project files, but it’s annoying when you download the latest release, only to find that something now fails to build, so I’m reporting it in the hope that it can be resolved.

I’d fix it myself, but I haven’t got a clue why it’s failing here and the output isn’t helpful at all, it just says: ‘failed to produce item: UE4Editor-PythonScriptPlugin.dylib’. It has done this since 4.19 preview 1, haven’t had any problem compiling any older releases including the 4.18 releases.