开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜