James Raitsev
James Raitsev

Reputation: 96581

Running an Mac OS command line application, how to

Suppose you create a new Mac OS Command Line Application using Xcode, which prints something. How do you actually find and run it using your command line or Finder?

enter image description here

Application was "built", but project directory structure does not seem to contain an executable file. For what matter in what format will this file be?

Please advise

Upvotes: 0

Views: 290

Answers (1)

Perception
Perception

Reputation: 80633

This should help out:

  1. Choose to build your project for archiving (Product->Build For->Archiving).
  2. The executable will be created and placed in the project build folder. This will typically be something like /Users//Library/Developer/XCode/DerivedData//Build/Products/Release.
  3. If you wish, copy the executable to a more convenient location.
  4. To run it, open up a shell window, browse to the executable directory, and type in your command name.

EDIT

I see you mentioned iOS in your question and tagged it as such. This answer is NOT relevant to iOS, infact I see no option to build a command line application for that system and it doesn't really make much sense to have one.

Upvotes: 1

Related Questions