开发者

Creating Unix Commands with Xcode

开发者 https://www.devze.com 2023-01-02 15:14 出处:网络
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 th

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

精彩评论

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

关注公众号