• 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
Re: Making a WO Project dependent on a WO Framework Project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making a WO Project dependent on a WO Framework Project


  • Subject: Re: Making a WO Project dependent on a WO Framework Project
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 12 Mar 2007 11:12:45 -0700


On Mar 11, 2007, at 5:40 PM, Michael Scott wrote:

Hi Chuck, thank you for your response. That’s funny about your book; I
have an order confirmation from Amazon, and they claim to be shipping it to
me between March 1 & March 21 this year. If they bill me, I’ll make sure
you get a cut. :)

Grin.


But regarding Xcode, do you think I’m using the best approach, or is there a
better way?

Honestly, I don't know. This was one of the things we were going to research for the book. I have always either used the println method :-), or moved the code into Eclipse if I really needed a debugger.



Alternatively, do you think it would be a lot of pain to move a very large
project from Xcode to Eclipse?

That depends on your definition of "a lot of pain". ;-) I've always looked at it as a few hours of work, but I did not do it until after I was familiar with Eclipse. I recommend asking this on the WOLips list. I know some other people on the list have recently converted from Xcode to Eclipse and can probably give you a more accurate estimate of the time costs to both learning the new IDE and migrating your project.


Chuck

On 10/3/07 2:53 AM, "Chuck Hill" <email@hidden> wrote:


On Mar 8, 2007, at 7:12 PM, Michael Scott wrote:

I'm having difficulty working out how to make an Xcode WO project
depend upon a WO Framework project.  Could anyone help?

I have a WO framework project and two application projects (a
survey system and a booking system) that use the framework.  Up
until now, I've been developing and deploying the framework
separately from the applications. The applications have the
deployed framework added to their list of frameworks.  This works
fine.  But I'm eager to make the application projects dependent
upon the framework project to gain the debugging advantages of
dependent projects.

In an attempt to establish this dependency, I've done the following:

1) I've placed a reference to the framework project in the
application project using Xcode's Add to Project... menu option.
This added an icon folder for the framework project into the Groups
& Files of the application project.  This icon folder contained
references to the build products of the framework project.

2) I configured Xcode to use the same build location for all
projects via the Building tab in the Preferences window.  My
understanding is that Xcode needs this to locate all of the build
products during a dependent build.

3) I did the following to create the dependency (but perhaps this
is where I'm going wrong).  A WO application has three targets: an
Application Server target, a Web Server target, and an aggregate
target named after the project.  The aggregate target has direct
dependencies on the two other targets.  I selected Get Info for the
aggregate target, and in the Direct Dependencies list, add the
framework projects aggregate target.  I then dragged the
framework's aggregate target above the the other two, so that it is
the first dependency in the list.

When I build the application project, Xcode appears to build the
framework without problems but produces numerous 'cannot find
symbol' errors when it tries to compile the application.
Examination of these errors indicates that Xcode is unable to
locate the classes from the framework project.

I can make these errors go away by the following method, but I'm
sure it's not the correct thing to do.  In the application project,
I've dragged the symbol for the framework's build products into the
Compile Sources build phase of the application's Application Server
target.  This works fine for development - giving me the desired
ability to debug both the application and framework together, but
it doesn't work for deployment.

I think that neatly sums up why I prefer Eclipse. :-P


I have ordered Chuck Hill's book - Beginning Xcode with
WebObjects ... - but it won't arrive for another month (and of
course, I don't know if it will address this issue).

It won't ever arrive. It was cancelled last year. Sorry.

Chuck

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Making a WO Project dependent on a WO Framework Project (From: Michael Scott <email@hidden>)

  • Prev by Date: Re: Using Links for submitting forms
  • Next by Date: Generic conditional WOHyperlink
  • Previous by thread: Re: Making a WO Project dependent on a WO Framework Project
  • Next by thread: Re: Making a WO Project dependent on a WO Framework Project
  • Index(es):
    • Date
    • Thread