Creating Unix Commands with Xcode
I'm trying to make a Terminal Unix command with XCode, and I'm having a little trouble...
What 开发者_高级运维I've been doing is creating a "Standard Tool" written in C in XCode, then copying the produced executable to Developer/Tools/.
What am I doing wrong?
Thanks for any help in advance.
You need to add /Developer/Tools to your PATH environment variable. In your .profile (or IIRC .bash_profile), you need something like:
PATH="${PATH}:/Developer/Tools"
export PATH
精彩评论