It's the register .app command that runs when you press play.
It executes the
RegisterWithLaunchServices application.app
cd "into app folder"
lsregister -f -R -trusted application.app
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: