Embed command line utility in the bundle of my app

Hello,


I am about to submit my app to the Mac App Store. In my app, I use a command line utility that I include in the bundle of my app, in the executables (MacOs) folder. I use this command line utility with NSTask from the app. The command line utility is called optipng, it is open source, and its license allows to distribute it in commercial software, assumed I give credit for this in the about Window. I would like to know, is this allowed on the Mac App Store ? I have signed the command line utility with the same certificate as the app, and I ensure the CLI is closed before quittting my app.


Thanks for any help,


Alfonso Tesauro

Independent developer

Italy

Hello Alfonso,

Only Apple can say whether any particular app will be allowed or not. There is no way to "pre-approve" anything. That being said, I don't see any problem with what you describe. But have you considered just stripping off the main() function and using it directly. You can literally just rename "main" to something else. But chances are, there will be some even better way to hook into the entry point.

Embed command line utility in the bundle of my app
 
 
Q