• 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: Multiple projects with the same code base.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple projects with the same code base.


  • Subject: Re: Multiple projects with the same code base.
  • From: Bjoern Knafla <email@hidden>
  • Date: Fri, 6 Nov 2009 19:04:23 +0100

Hey!

You don't need to have the source-code in the directory where you safe the xcode project file. From inside Xcode you can refer to other directories. For sourcecode you eventually have to adapt the header search paths then.

Example: I am mainly developing cross-platform code and am often using the following directory layout, the example shows my "amp" project:

amp/
/src <- all source code (for all platforms) lives somewhere in this subdirectory
/doc
/test
/build_env
/xcode_3_2
/amp <- in this sub-dir I put the Xcode 3.2 project file and all Xcode specific files.
/msvc2008
/amp <- here you find MS Visual StudioC 2008 project files



To enable #include "..." or #import "..." I need to add $ (SRCROOT)/../../../src to the header search paths.


As you can see, it would be easy to create an /xcode_2_5 (or whatever Xcode version you need to manage separately) below the build_env dir.

Cheers,
Bjoern


On 06.11.2009, at 18:38, Sandro Noël wrote:

Greetings.

I was wondering on how it would be possible to have two projects used the same code base but be compiled on different OS version.

for example.
I have my application and i compile it under snow leopard taking advantage of the new libraries,
but when the software runs on leopard some weird behaviour happen, and the program crashes randomly
so i created a project that has all the right configurations for leopard and bring the source code to
the leopard machine and compile it there. and then the leopard version work's nicely.


nothing in the code has changed...

so the projects are named "application snow Leopard" and "application Leopard"
I've renamed the info.plist for each project along with the pch file.
The leopard project is compiled with XCode 3.1.4, and the snow Leopard one with XCode 3.2.1


the problem i'm encountering is that whenever i'm on the Snow leopard machine and load the snow leopard project,
it get's all mixed up and loads the targets and products for the leopard project instead of loading those of the snow leopard project.


When I remove the "leopard project files" from the directory, everything works just fine.

what i am asking here is what is the right way to do this.
in the windows world i used to have project groups, witch would include multiple projects and compile each one independently of each other
something i find lacking in Xcode. or maybe i just did not get it yet.


thank!

Sandro Noel.

_______________________________________________ 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: Multiple projects with the same code base.
      • From: Sandro Noël <email@hidden>
References: 
 >Multiple projects with the same code base. (From: Sandro Noël <email@hidden>)

  • Prev by Date: Re: Multiple projects with the same code base.
  • Next by Date: Re: solved: fail to launch due to improper linking :)
  • Previous by thread: Re: Multiple projects with the same code base.
  • Next by thread: Re: Multiple projects with the same code base.
  • Index(es):
    • Date
    • Thread