While I am unsure of a specific way to target XCode, this reddit post has a way to disable all bouncing notifications on macOS through the terminal:
defaults write com.apple.dock no-bouncing -bool TRUE;
then restart the dock:
killall Dock;
This appears to be a permanent fix