Re: Copying Plugin Bundles to the Application Bundle
Re: Copying Plugin Bundles to the Application Bundle
- Subject: Re: Copying Plugin Bundles to the Application Bundle
- From: Christiaan Hofman <email@hidden>
- Date: Sun, 17 Oct 2010 22:48:59 +0200
On Oct 17, 2010, at 22:27, julius wrote:
> XCode 3.2.4.
> I'm learning about building Cocoa plugin based applications where the plugin code resides within the application's Content/Plugins folder. I have now succeeded in building my first plugin and exchanging data with it from the base application. However, I had to create the Plugins folder manually using the finder and manually copy the plugin to that folder. I know there exists a way of copying the plugin into the base application during the Copy Files Build Phase because there is a description of this in the Code Loading Programming Topics documentation under the heading "Copying Loadable Bundles to the Application Bundle"
> http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/LoadingCode/Tasks/Componentizing.html
>
> Unfortunately the instructions appear to refer to an earlier version of XCode or Project Builder. Is there an up to date set of these anywhere to be found or failing that could someone please list the steps involved.
>
> In all my attempts to use the Copy Files Build Phase I was unable to create the Contents/Plugins folder which is why I ended up doing this using the finder - or is that the normal way of doing it?
>
> I am under the impression that it is possible to configure XCode so that the latest build of the plugin will be the one copied during the Copy Files Build Phase. Some advice on this would also be appreciated.
>
> Thanking you in advance
> Julius
>
>
> http://juliuspaintings.co.uk
I thought this should be pretty straightforward. In the info window for the Copy Files build phase (which you get when you add the build phase, or otherwise using double-click or Files > Get Info) you can choose which destination subfolder to copy the files (bundles) to, in your case that should be Plugins. The folder will then be automatically created, at least when you add stuff to the build phase.There's really nothing more you need to do.
Christiaan
_______________________________________________
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