how to include and call a CLI utility

I would like to include an executable Unix File (it is a CLI utility, you can use it with terminal p.e.) into my bundle and call it with the shell command. Thus, people would no longer need to install the utility seperately.

I tried adding it to my resources, but building of the project fails.

Thank you!

Adding something to resources shouldn’t of itself make building fail.

you´re right, wrong board, for it fails in xcode 3.1 only:

Well, no trouble with this in Xcode SL. But how do I get it´s path / execute it?

You get its path using NSBundle, something like:

set thePath to current application's NSBundle's mainBundle's pathForResource_ofType_("File name", missing value)

You run it using “do shell script” or NSTask.