• 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: Can you use Build Configurations to link with different libraries?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can you use Build Configurations to link with different libraries?


  • Subject: Re: Can you use Build Configurations to link with different libraries?
  • From: Mike Jackson <email@hidden>
  • Date: Tue, 19 Jul 2005 20:49:35 -0400


On Jul 19, 2005, at 4:41 PM, Mark Bessey wrote:
Now that you have a reference from one project to the other, you should set up a dependency on the library target from the application target. Double-click the application target in the Groups & Files view, and use the "+" button on the "General" pane to set the application as being dependent on the library.
(This isn't strictly necessary, but you'd normally want to have a dependency on the library, so if you change it, the application gets rebuilt, too.)


Just remember if you do the direct dependency from the App target to the Library project that every time you clean the target that ALL dependent projects will be cleaned also. This is ok for small projects but if you have situations where rebuilding those subsequent libraries can take substantial time then you want a slightly different setup. (My sub libraries can take an hour to build on a 1.6GHz Powerbook).
Skip the step below for the time being. Finish with the remainder of the instructions. Now, create a NEW target, when the list of targets window comes forward, select the "Aggregate" type. Now with this NEW target, follow the instructions below and add the dependent Library from the referenced Project and the App Target in the current project as dependencies to this Aggregate target. Use this Aggregate target to build everything. If you want to clean just the App Target, then switch the active target in the popup list to the App Target and hit clean.
I learned a painful lesson about having direct dependencies. One click and I was almost 2 hours watching compile messages go by...


---
Mike Jackson
mike _at_ bluequartz dot net


_______________________________________________ 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
References: 
 >Can you use Build Configurations to link with different libraries? (From: Dave Thorup <email@hidden>)
 >Re: Can you use Build Configurations to link with different libraries? (From: Mark Bessey <email@hidden>)

  • Prev by Date: Re: "Program exited with status value:45. mi_cmd_stack_list_frames_lite: No stack." Eh?
  • Next by Date: CSE and the single programmer
  • Previous by thread: Re: Can you use Build Configurations to link with different libraries?
  • Next by thread: Re: XCode 2.1 Preprocessing Info.plist
  • Index(es):
    • Date
    • Thread