Create app from command line tool

Joined
Jan 28, 2012
Messages
24
Reaction score
0
Points
1
I create a command line tool. It runs great in Xcode. How do I create an executable file and save it in applications. I really need explicit instructions. Thanks
Warren
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
What do you mean by "save it in applications"? Are you referring to creating an app bundle (.app) that you can double click on? If so, that's not really how command line applications work. For these types of apps, you'd create an installer package. Are you a registered developer? The method of creating installers differs depending on the answer to that question.
 
OP
W
Joined
Jan 28, 2012
Messages
24
Reaction score
0
Points
1
Yes that is what I mean. No I am not a registered developer. I just want to execute outs de Xcode roper.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
The easiest way would be to compile your application and put it in your PATH. Doing it this way lets you quickly open up a Terminal window and run the application without having to type out the full path. Here's an article about changing the PATH variable.
 
OP
W
Joined
Jan 28, 2012
Messages
24
Reaction score
0
Points
1
Thanks for your suggestions. I am at a loss as to how to compile without executing in Xcode?
Warren
 

bobtomay

,
Retired Staff
Joined
Dec 22, 2006
Messages
26,561
Reaction score
677
Points
113
Location
Texas, where else?
Your Mac's Specs
15" MBP '06 2.33 C2D 4GB 10.7; 13" MBA '14 1.8 i7 8GB 10.11; 21" iMac '13 2.9 i5 8GB 10.11; 6S
Modified title and moved to appropriate forum.

Make it easier for others that may be considering the same...
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
You want the build option. You could use Xcode to do this or use the command line tool xcodebuild (see here).
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top