How do I run a xcodeproj from bash?

1

How do I run a xcodeproj from bash?

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

Voloda2

Posted 2012-07-12T21:23:00.920

Reputation: 113

Answers

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.

slhck

Posted 2012-07-12T21:23:00.920

Reputation: 182 472

2

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

Spiff

Posted 2012-07-12T21:23:00.920

Reputation: 84 656