How to open Xcode from terminal?

前端 未结 6 1967
囚心锁ツ
囚心锁ツ 2021-01-30 05:04

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 compi

6条回答
  •  情书的邮戳
    2021-01-30 05:44

    Very simple:

    Get into the directory of the project; you can tell if your in the proper directory by typing "ls" (short for 'list') into terminal and if you see the .xcodeproj suffix on your project name then you're in the right spot.

    open projectname.xcodeproj

    The project will then open into Xcode

    Shortcut: on a macbook you can many times type just the first letter or two of your projectname and if you hit 'tab' it will autocomplete it. So you could type the above code like this...

    open pr[tab] then you'd see... open projectname then you'd type... open projectname.xc[tab] and it would finish that too to end up like this... open projectname.xcodeproj

提交回复
热议问题