• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Installable Command Line Tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Installable Command Line Tool


  • Subject: Installable Command Line Tool
  • From: Saagar Jha <email@hidden>
  • Date: Sun, 08 Jan 2017 08:59:35 -0800

(This is my first time posting to this list, so please correct me if I’m doing anything wrong)

I have an Xcode project which contains two targets: one is a macOS app, and another is a Command Line Tool. At the moment, each of them builds and is distributed separately. What I want to do, however, is embed the Command Line Tool in the app bundle, so that all I need to do is distribute the app, and users can click a button to installed the Command Line Tool to /usr/local/bin or whatever. What would the recommended way to do this be?

Some things ideas I’ve had:
  1. Add the Command Line Tool's product to the app’s Copy Bundle Resources. This seems to be the easiest way, but it seems to be dependent on the last build I did for the Command Line Tool (i.e. if I archived the app after debugging the CLT, the unoptimized binary would be copied over)
  2. Archive the Command Lime Tool and app, then manually copy the executable to the app’s bundle. I haven’t tried this, and it seems like a massive hack, if it would even work at all.

Thanks,
Saagar Jha
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Installable Command Line Tool
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Debug wont start
  • Next by Date: Re: Installable Command Line Tool
  • Previous by thread: Debug wont start
  • Next by thread: Re: Installable Command Line Tool
  • Index(es):
    • Date
    • Thread