Xcode: multiple apps in one project?

Discussion in 'Mac Programming' started by HiRez, Jun 7, 2009.

  1. macrumors 601

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #1
    Hi, I'm considering writing an application that is composed of three separate but related executables. There would be client, server, and render controller components. But all different project types. The client would probably be a Core Data Document application, the server would probably be a Core Data non-Document application, and the render controller would probably be a command-line (non-GUI) application which would probably not need Core Data.

    So my question is how do I wrangle all these things together without getting really messy? I just don't have much experience using multiple build targets and so forth. Some of these components will be using the same Core Data entities (the client and server at least), so I'd like to only define and edit them in one place instead of trying to keep two or three separate projects with many overlapping elements (entities/objects and code) in sync. Can I do this in one project?
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Should be fairly straightforward. Just create a new project, then create new targets for the rest. Xcode will try and put all your code in the same folder, and resources in another, so if you want to separate them out for each app you'll have to do a little more work. Although, you should be able to make new folders in the Finder, and add them in as references and Xcode will put the files into those folders appropriately.

    Also it will be helpful to show the Target Membership column under Groups & Files. Just right-click the table column area and select that column.
     
  3. thread starter macrumors 601

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US

Share This Page