Re: Re: Bundling UNIX apps inside Cocoa app?
Re: Re: Bundling UNIX apps inside Cocoa app?
- Subject: Re: Re: Bundling UNIX apps inside Cocoa app?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Mon, 21 Feb 2005 13:57:45 +0100
At 12:31 Uhr +0000 21.02.2005, <email@hidden> wrote:
I then dragged the folder of UNIX apps into my XCode project into
the Products folder. I tried to drag the folder itself to the Copy
Files Build Phase under my target, but it wouldn't accept the drop.
So I modified the Copy Files build phase and set the "Subpath" to
/Binaries/bin. Then I simply copied the files to the Copy Files
build phase and they added fine. Built the project.
Uhh... no. The subpath isn't for that. Also, you shouldn't drag the
apps *into* the products group. It's only there for the products of
your targets. I thought you were building the tools yourself.
If you just have a folder, just add it to the "Resources" group as a
*folder reference*. What actually happened when you dragged into
"Products" was that (since adding a file to products makes no sense)
all of your files got added to the "Resources" group, while your
folder was turned into a group (brown folder).
So, remove them and drag the folder in a second time, this time
taking care to make it a folder reference (blue folder). Then it'll
just get copied into "Resources", you don't need a "Copy Files" build
phase.
What happened is that all of the UNIX files are directly in the
Resources directory, as well as a /Binaries/bin directory. So it
kinda worked, but the files are showing up twice, which is
completely not needed.
The subpath specifies the subfolder *of your bundle* *to* which the
files will be copied. So, in addition to the files you added by
dragging them into the "products" group being copied as resources,
the Copy Files phase kicked in and created the second copy in a
/Binaries/bin subdirectory, just as you told it.
You might want to have a look at the Xcode help if my descriptions
weren't clear enough.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden