It appears there is a minimum OS version? I created a toy app. From command line…
open outputdir/TestApp.app LSOpenURLsWithRole() failed with error -10825 for the file /Users/mjh/HalfPipe/Test/outputdir/TestApp.app. Double click launching… You can’t use this version of the application “TestApp” with this version of macOS. You have macOS 10.12.6. The application requires macOS 10.13 or later.