• 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: How to create dependent projects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create dependent projects?


  • Subject: Re: How to create dependent projects?
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 21 Jul 2009 21:45:37 -0700


On Jul 21, 2009, at 6:17 PM, John Mikros wrote:

I have no idea how you're "supposed to" do it, but what we do is create a Run Script Build Phase with the following script, and this works for us.

cd "$SRCROOT/path/to/your/other/project"
xcodebuild -project OtherProject.xcodeproj -target "My Target" -configuration Debug
exit

We also put the other project into Groups and Files for easy access to it.

Oh please don't do that.

You're just spinning up another instance of all of Xcode, taking time and memory, for no good reason.

If you want a target in project B to be brought up to date whenever you build a certain target in project A, just follow the instructions in Referencing Other Projects and Adding Target Dependencies:

1) Drag project B into project A's Groups and Files tree.
2) Open the target in project A and select the General tab.
3) In the Target Dependencies list, click the + button to add a dependency.
4) In the sheet, select the target in project B that you want project A to be dependent on.

Whenever you build that target in project A, it will first check the status of the target in project B, and build it if necessary.

Note that this is an independent step from whether project A actually uses project B's build products.  You can have projects that force each other to build, but never use each other's build products; or you can have projects that use each others' build products but do not force a build, or set it up to do both.

Chris
 _______________________________________________
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:
    • Build Configuration Enhancement (Re: How to create dependent projects?)
      • From: Daniel Jalkut <email@hidden>
References: 
 >How to create dependent projects? (From: Jack Repenning <email@hidden>)
 >Re: How to create dependent projects? (From: John Mikros <email@hidden>)

  • Prev by Date: Re: How to create dependent projects?
  • Next by Date: Re: updating help-book in Xcode
  • Previous by thread: Re: How to create dependent projects?
  • Next by thread: Build Configuration Enhancement (Re: How to create dependent projects?)
  • Index(es):
    • Date
    • Thread