How to enable terminal window to show for my command line tool when I run it from an app bundle?

29 Views Asked by At

I'm trying to notarize and staple my command line tool. Since mach-o binaries cannot be stapled, I decided to embed it into an app bundle. This works, except that when I run my command line tool by double-clicking the app bundle (.app directory, that I put it in) the terminal window is not shown.

Can I somehow make a terminal window display for my tool when I run it from an app bundle? (Similar to what would have happened if I double-clicked the mach-o binary file for my command line tool in Finder.)

0

There are 0 best solutions below