• 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: No Xcode "User Libraries" build setting?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No Xcode "User Libraries" build setting?


  • Subject: Re: No Xcode "User Libraries" build setting?
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 12 Mar 2014 11:43:20 -0700

On Wed, Mar 12, 2014, at 11:36 AM, Carl Hoefs wrote:
> Newb Question. Under which build setting in Xcode 5.1 am I to place
> reference to user libraries (/opt/local/lib, /usr/local/lib, etc) that my
> OS X project is to link against?
>
> I've yet to discover anything resembling "User Libraries To Link With",
> so I'm having to stuff "-lxxxx -lyyyy -lzzzz" etc. into "Other Linker
> Flags", which works, but makes me feel I'm missing something much more
> obvious...

Open the Build Phases tab of the Project editor. Expand the Link Binary
with Libraries phase. Click the plus button and choose Add Other.
Navigate to the library you want to link against.

Now select that library in the phase and open up the File inspector
(right-side pane). Change  "Relative to group" to "Absolute path".
(Otherwise moving your project around will break your dependencies.)

--Kyle Sluder
 _______________________________________________
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: No Xcode "User Libraries" build setting?
      • From: Carl Hoefs <email@hidden>
References: 
 >No Xcode "User Libraries" build setting? (From: Carl Hoefs <email@hidden>)

  • Prev by Date: No Xcode "User Libraries" build setting?
  • Next by Date: Re: xcodebuild fails to "load dependencies output contents"
  • Previous by thread: No Xcode "User Libraries" build setting?
  • Next by thread: Re: No Xcode "User Libraries" build setting?
  • Index(es):
    • Date
    • Thread