如何从终端打开Xcode? [英] How to open Xcode from terminal?

查看:538
本文介绍了如何从终端打开Xcode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到我当前的bash文件具有export PATH=$PATH:/Applications/MAMP/library/bin ,我将其放置在其中以设置对mamp的终端访问.我一直在尝试编译-a MyApp a.xcodeproj& open a.xcodeproj,但是我不确定要使用哪一个,而且都不起作用.在建议$ alias xcode="open -a Xcode"之后,我还将其添加到了bash文件中.它仍然不起作用.我需要一个路径/终端专家来帮助我配置从终端运行Xcode的方法,因为我正在尝试使用可可豆荚.

I noticed my current bash file has export PATH=$PATH:/Applications/MAMP/library/bin which i put there to set up terminal access to mamp. I've been trying to compile -a MyApp a.xcodeproj & open a.xcodeproj but I'm not sure which one to use and neither works. I also added this to the bash file after suggestion $ alias xcode="open -a Xcode" It still doesn't work. I need a path/terminal expert to help me configure a way to run Xcode from the terminal because I'm trying to use cocoa pods.

推荐答案

xed可以做到这一点,并随xcode一起提供.运行

xed does this and ships with xcode. Run

xed .

man xed了解更多信息.

这篇关于如何从终端打开Xcode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆