Re: Not finding libraries
Re: Not finding libraries
- Subject: Re: Not finding libraries
- From: Bernie Maier <email@hidden>
- Date: Fri, 30 Dec 2016 12:21:45 +1100
Howard Moon:
Initially, the problem was that the paths to two of the libraries includes
spaces in it. 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. That in turn caused the linker to
fail to find the libraries. Apparently it likes to add the escape characters
itself, and did not like their inclusion in the paths in the settings.
On top of that, the NEXT time I opened the project, ANOTHER escape character
would be added before (after?) each ‘\’! And this would keep going,
adding more and more escape characters each time I open the project.
I haven't tried this for myself, but I think you may avoid some of these
problems if you moved these settings into .xcconfig files. You could define
your build variables there, correctly quoted to cope with the spaces, and the
Xcode UI will not futz with them.
Personally, I'm a big fan of .xcconfig files and move as many build settings
into them as possible. But to get started you probably only need minimal
versions: a debug one and a release one.
--Bernie
_______________________________________________
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