• 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: Porting projects from Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Porting projects from Windows


  • Subject: Re: Porting projects from Windows
  • From: Thomas Hauk <email@hidden>
  • Date: Fri, 12 Sep 2008 15:16:06 -0700

On Sep 10, 2008, at 4:44 PM, David Dunham wrote:
Please copy the list.

Apologies as I made a mistake of only clicking "Reply". I have noted it this reply, which is going to both you and the list.


Say I have Applications A1 and A2. A1 uses packages P1 and P2, and A2 uses packages P1 and P3.

With Visual Studio, I can create a solution for A1 that includes A1, P1 and P3. While working with this solution open, if I make a change to a source file that lives in P3, Visual Studio automatically knows the entire solution needs a rebuild. I can also create a solution for A2 and I can use the same project file for P1.

In Xcode, how do I accomplish all of this? Most importantly, the ability for the IDE to automatically know when a dependency needs to be recompiled. If at all possible, it would also be nice to keep just a single window open for all of this, and not one per package, and also have to manually determine when a package needs to be recompiled.

Drag P1.xcodeproj into A1.xcodeproj.

In the Target Info for A1, be sure P1 is a direct dependency.

I think you may also need to make sure there's a check on libP1.a (in the View > Detail window).


This did not work.

I created a brand-new C library project and C application project, P1 and A1, and followed your steps. P1 contains p1.c and p1.h. I modified p1.c from within A1.xcodeproj and hit "Build". P1 did not get automatically re-compiled.

Xcode really is not really designed for convenient application development where you have a collection of packages (some may be external, some may be internal) and want to have a top-level project that uses these projects. I believe I am forced to use a "monolithic" approach. As such, I will re-state one of the questions I asked in my original e-mail, and hopefully someone can answer it:

"One method to resolve this that I've found using Google is to have all the code for all the packages lumped into a single Xcode project. At present, we have more than one application in this project, all of them using different sets of packages. Would this "monolithic" approach require me to have one Xcode project per application (resulting in a huge mess of having to manually track setting changes)? Or can I set up a single Xcode project to compile three very different applications using different sets of shared package sources?"

T

--
"Computer games don't affect kids. I mean, if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching pills and listening to repetitive music."
-- Marcus Brigstocke


_______________________________________________
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


  • Follow-Ups:
    • Re: Porting projects from Windows
      • From: David Dunham <email@hidden>
    • Re: Porting projects from Windows
      • From: Jonathan Prescott <email@hidden>
References: 
 >Porting projects from Windows (From: Thomas Hauk <email@hidden>)
 >Re: Porting projects from Windows (From: David Dunham <email@hidden>)
 >Re: Porting projects from Windows (From: David Dunham <email@hidden>)

  • Prev by Date: Re: Release Notes for Xcode 3.1.1
  • Next by Date: Re: Porting projects from Windows
  • Previous by thread: Re: Porting projects from Windows
  • Next by thread: Re: Porting projects from Windows
  • Index(es):
    • Date
    • Thread