Hi there,

On 16/06/2006, at 3:34 AM, Chuck Hill wrote:

On Jun 15, 2006, at 6:48 AM, Carter Wojcik wrote:

I have a webobjects application which I would like to
add a framework containing custom components.  Instead
of placing the framework into the /Library/Frameworks
directory, I would like to include the framework
directly in my application for portablililty.  I have
read the Apple documentation and searched the mailing
lists, but I am having problems including the
resources from my framework in the application.

Using Xcode 2.3, I use 'add existing frameworks..' and
point to the framework in my project directory.  Then
I add the framework to my application server target.
I can then compile and run the application, but when
Safari opens, I am missing the images contained in
resources in my framework.  How do I tell my
application to use (find) the resources in my included
framework?

When I have done this, I had to modify the classpath file by hand / script. I don't know if Xcode will do that for you. If it will, I have no idea how.

Where your frameworks exist in development is irrelevant. What you want is to utilise the WONDER woaFrameworkMerger script as follows:

In your Xcode project:
1) Make sure your <YourProjectName's> target is active.
2) Select Project > Edit Active Target 'YourProjectName'
3) Select Project > New Build Phase > New Run Script Build Phase
4) Under Build Phases (left column) select last "Run Script" phase.

Set as follows...

Shell: /bin/sh
        perl "${SRCROOT}/woaFrameworkMerger.pl" "${WRAPPER_DIR}"

Now when you build your application any linked frameworks that are not apple-supplied will be automatically copied into the resulting YourProjectName.woa/Contents/Frameworks/ with the classpaths adjusted automatically as well.

It's very convenient...

with regards,
--

Lachlan Deck

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to