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

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


  • Subject: adding a static library in another project relative to my build product
  • From: Roland King <email@hidden>
  • Date: Thu, 1 Oct 2009 22:15:53 +0800

I have a library which is built in \Users\me\Code\MyLib\build\<product type>\libMyLib.ar

product type is one of the iphone product types, Debug-iPhoneSimulator etc.

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.

I'm sure there's a way to do this but I'm not finding it. I wondered about either adding the library as a new target, but that means copying all the build settings, (not the code), and having the rebuilt as part of my project but I'm neither totally sure how to do that nor how to reference it once I've done it. I found something about cross- product dependencies in the documentation but I didn't make headway there either.

Can you point me to documentation or a 2-paragraph brief of what structure you'd suggest creating? I can just copy all the source files from my library project into my application but that seems so wrong, I'm sure XCode has better support for this that that.

Thanks

_______________________________________________
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: Jens Alfke <email@hidden>
  • Prev by Date: Re: How to use gcc-4.3 (or 4.4) in Xcode?
  • Next by Date: Re: XIB file contents change depending if IB is 32 or 64 bit, is that ok?
  • Previous by thread: Re: How to use gcc-4.3 (or 4.4) in Xcode?
  • Next by thread: Re: adding a static library in another project relative to my build product
  • Index(es):
    • Date
    • Thread