Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8654557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:49:02+00:00 2026-06-12T14:49:02+00:00

I made a command line tool as a Cocoa Application in XCode and when

  • 0

I made a command line tool as a Cocoa Application in XCode and when I archive it, it generates a .app file that contains the underlying executable file. To actually run it, I need to execute that underlying file which is located at AppName.app/Contents/MacOS/AppName. Is there any way I can have it build just the executable? I don’t want to have to create a post build step that copies the executable out of the .app file.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:49:03+00:00Added an answer on June 12, 2026 at 2:49 pm

    When you create an Xcode project you choose the project type. Cocoa Application and Command Line Tool are two of the choices. Apparently you created a Cocoa Application but modified the template provided main.m file to execute as a Command Line Tool. However, once a project has been created it cannot be converted to another project type. Xcode will still treat it as the project type you created it as.

    You can solve your problem by creating a new project, this time with type Command Line Tool, copy in the same software, and build. The build product will be a UNIX command line program just as you wish.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've made an app which includes a command-line tool. I have enabled the app's
I have made an application in Visual C++ (That uses the command line). I
I just made an app that just prints something up in the command line
I made an application that passes trough an XML file and extracts the entries
I made a simple notifier command line application in C#. Basically I use the
Hi i made a command line tool but when compiling i get this error
I made a Caesar cipher that successfully worked with command line arguments with the
I would like a command line function that I can run on any file
I made an iphone app to capture image from camera and to set that
I made yuicompressor work from the command line. But the only thing I didn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.