1

How do I run a xcodeproj from bash?

ls
Quotes          Quotes.xcodeproj    README.md
exec Quotes.xcodeproj
-bash: exec: Quotes.xcodeproj: not found

2 Answers 2

2

xcodeproj files are not executable. They are actually packages, so they contain much more than one file. Usually, they're opened by Xcode.app. If you want to open such a file from terminal, all you have to do is write:

open Quotes.xcodeproj

This will launch Xcode with that project.

Otherwise, if you want to peek into that package, just cd into it.

2

To run an Xcode build of a .xcodeproj, use the xcodebuild command.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .