Installable Command Line Tool
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: - 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)
- 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.
|
_______________________________________________
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