Re: No Xcode "User Libraries" build setting?
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