• 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: adding a static library in another project relative to my build product
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding a static library in another project relative to my build product


  • Subject: Re: adding a static library in another project relative to my build product
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 1 Oct 2009 08:35:49 -0700


On Oct 1, 2009, at 7:15 AM, Roland King wrote:

I have a library which is built in \Users\me\Code\MyLib\build \<product type>\libMyLib.ar
Now I have a project which uses it, \Users\my\Code\MyApp\
and try as I might I can't find a way to include it so that whatever product type I'm building, I pick up the correct version of the library for that build product. The 'relative to' bit is always on the start of the path, I need it in the middle of the path.

Add the project that builds the library to the project that uses it (just drag the project file into the other project's source list.)
Then you can edit the settings of the target that uses the library, and (a) add the library to the set of libraries it imports, and (b) specify a dependency on the target that builds the library.


This will automatically take care of getting the library out of the appropriate Debug/Release build folder, and it will even make sure to build the library first if any of its source files have changed.

—Jens

_______________________________________________
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: adding a static library in another project relative to my build product
      • From: Roland King <email@hidden>
References: 
 >adding a static library in another project relative to my build product (From: Roland King <email@hidden>)

  • Prev by Date: Re: XIB file contents change depending if IB is 32 or 64 bit, is that ok?
  • Next by Date: Re: adding a static library in another project relative to my build product
  • Previous by thread: adding a static library in another project relative to my build product
  • Next by thread: Re: adding a static library in another project relative to my build product
  • Index(es):
    • Date
    • Thread