• 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
Not finding libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Not finding libraries


  • Subject: Not finding libraries
  • From: Howard Moon <email@hidden>
  • Date: Thu, 29 Dec 2016 09:40:39 -0800

I’ve been having some troubles with including static libraries (.a files) in my project. I have one set of libraries that I need for Debug and one for Release builds.

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.

So, instead of putting the paths in the Other Linker Flags settings themselves, I decided to put just the library names there, and put the paths in Library Search Paths (with quotes).

Now, though, even though I can see that the linker statement includes the correct -L<path> for each of those paths, it fails to find my libraries.

And to top it off, THESE settings ALSO add those stupid escape characters every time I open the project!

So, how in the heck to I add different versions of those libraries for my Debug versus Release builds, and also deal with spaces in the paths to them (and in the library name itself, in one case)?

Thanks,
	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


  • Follow-Ups:
    • Re: Not finding libraries
      • From: Bernie Maier <email@hidden>
    • Re: Not finding libraries
      • From: Alex Zavatone <email@hidden>
    • Re: Not finding libraries
      • From: Quincey Morris <email@hidden>
    • Re: Not finding libraries
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: How to strip Cocoa Touch frameworks
  • Next by Date: Re: Not finding libraries
  • Previous by thread: When archiving a build, what is "Setting Mode" doing?
  • Next by thread: Re: Not finding libraries
  • Index(es):
    • Date
    • Thread