This implements was @ucomesdag mentioned here. The built output has been tested on macOS 10.13.6 (High Sierra) and macOS 10.15.16 (Catalina). This change seems to fix the issues on Catalina without breaking High Serra. Unfortunately, I don't have a way to confirm the build file still works on macOS 10.14 (Mojave).
This implements was @ucomesdag mentioned here. The built output has been tested on macOS 10.13.6 (High Sierra) and macOS 10.15.16 (Catalina). This change seems to fix the issues on Catalina without breaking High Serra. Unfortunately, I don't have a way to confirm the build file still works on macOS 10.14 (Mojave).