Re: Not finding libraries
Re: Not finding libraries
- Subject: Re: Not finding libraries
- From: Howard Moon <email@hidden>
- Date: Thu, 29 Dec 2016 11:09:41 -0800
> On Dec 29, 2016, at 10:57 AM, Quincey Morris <email@hidden> wrote:
>
> On Dec 29, 2016, at 09:40 , Howard Moon <email@hidden> wrote:
>>
>> I was using “Other Linker Flags” to include the libraries, and quoting the paths so that they would remain as one item, both in the settings in the Xcode UI, and in the actual link step.
>>
>> However, every time I opened the project, the paths were getting mangled, adding ‘\’ escape characters in my settings before each of the quotes and spaces in those libraries’ paths.
>
> I’m not aware of any general problem in this area, so it might be worth spending more time on trying to figure out why this goes wrong for you.
>
> Note that there are *two* UIs for entering path names: click twice on the setting value to get an inline text field, and double-click on the setting value to get a popover with a list of values. If you use the inline text field, using double-quotes around the path string should work fine. If you use the popover, double-quotes that you type will themselves be quoted (by Xcode) when you dismiss the popover.
What “should” work and what DOES work are two different things. When I use double-quotes, when it writes the project to disk, it escapes the double-quotes and the spaces within, and those then appear in the popover list and in the inline text field. And the next time I close and re-open, there is another \ character for each of those. And the next time, a third. Etc. And I have to delete those in order to be able to build again.
>
>> Unfortunately, when I do that (which is actually what I did at first), it does not let me specify a different library for the Debug versus the Release build. I either select the Release or the Debug, and that is used for all configurations, as far as I can tell.
>
> TBH, I think you should approach this as two targets, not two configurations. I think that would solve your problem directly.
>
Then why have Debug and Release configurations at all? Isn’t it EXPECTED that a Debug build might use a Debug library?
-Howard
_______________________________________________
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