The problem was the identifier in tauri.conf.json.
identifier
tauri.conf.json
It was com.myproject.app which Mac was treating as an executable. I changed it:
com.myproject.app
"identifier": "com.myproject",