How to run xcode from terminal?

后端 未结 7 2390
挽巷
挽巷 2020-12-23 11:37

My question is very simple: suppose there is an xcode project a.xcodeproj, could I open it with the command: xcode a.xcodeproj?

If I try this, I receiv

7条回答
  •  萌比男神i
    2020-12-23 11:58

    You could also simply run xed . in the project's root directory, apparently it will try to load a project in a hierarchical manner, i.e. the first that exists:

    1. the folder, if it's a Package (Xcode 11+)
    2. xcworkspace
    3. xcodeproj
    4. playground

    which means you don't need to verify yourself the existing file structure in order to choose the best one to open.

提交回复
热议问题