• 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
Library Location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Library Location


  • Subject: Library Location
  • From: Richard Charles <email@hidden>
  • Date: Fri, 10 Mar 2017 11:31:06 -0700

I am having difficulty setting the location for a linked library that has multiple build configurations and locations.

My main project links to a library and copies the library into the bundle. The library is located in a separate project of my own making.

My library project has two build configurations: debug and release.

My main project has two build configurations: debug and release. The main project can also be archived.

How do I set the library location in the main project so I can successfully debug, release, and archive the main project using the correct library build configuration?

I have the following Xcode preferences.

   Build Locations
       Derrived Data: Default
               /Users/me/Library/Developer/Xcode/DerrivedData
       Archives: Default
               /Users/me/Library/Developer/Xcode/Archives

One simple thing to do is go to the project for the library, select the product in the project navigator, then drag the selection into the main project. This locates the library "Relative to Group" but only the debug configuration. The release configuration of the library is never used because it is located somewhere else.

The location drop down has the following options:

Absolute Path
Relative to Group
Relative to Project
Relative to Developer Directory
Relative to Build Products
Relative to SDK

Finding documentation on the exact definition of these options with examples of how they are to be used remains a mystery.

Lost in space,
--Richard Charles

 _______________________________________________
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: Library Location
      • From: Quincey Morris <email@hidden>
  • Prev by Date: iOS provisioning profile warning with Xcode 8
  • Next by Date: Re: Library Location
  • Previous by thread: iOS provisioning profile warning with Xcode 8
  • Next by thread: Re: Library Location
  • Index(es):
    • Date
    • Thread