Build failed with Continuing in background (Failed to display Xcode notification.)

Build failed in Xcode while building the app.

It occurs after quitting the Xcode then Upload notification received. After that it will showing this error and it not working.

 Continuing in background.

       Error: Failed to display Xcode notification
          caused by: script error: osascript: no such component "JavaScript".

        /Users//Library/Developer/Xcode/DerivedData/App-dvcafjcjvuogulagizfflouagntd/Build/Intermediates.noindex/ArchiveIntermediates/App/IntermediateBuildFilesPath/ line 5: debug]: command not found
Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports

Anyone faced this issue or have any solution for this?