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

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


References: 
 >Not finding libraries (From: Howard Moon <email@hidden>)

  • Prev by Date: Re: Related to the "Not finding libraries" - But within a workspace with a static lib not finding project headers in a framework.
  • Next by Date: Re: How to strip Cocoa Touch frameworks
  • Previous by thread: Re: Not finding libraries
  • Next by thread: Related to the "Not finding libraries" - But within a workspace with a static lib not finding project headers in a framework.
  • Index(es):
    • Date
    • Thread