question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to adjust Header Search Paths?

See original GitHub issue

Now I use the library libxml2.dylib, in order to work correctly i need to adjust header search paths to point at the libxml headers, In Xcode i can set it as ${SDKROOT}/usr/include/libxml2. how to do it for Buck?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Conekocommented, Feb 4, 2017

You can add -I${SDKROOT}/usr/include/libxml2 to exported_preprocessor_flags.

0reactions
Conekocommented, Feb 13, 2017

If you want to refer to headers inside your source tree you should use https://buckbuild.com/rule/apple_library.html#exported_headers, not exported_preprocessor_flags.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding system header search path to Xcode - Stack Overflow
Look at Preferences->Locations->"Custom Paths" in Xcode's preference. A path added here will be a variable which you can add to "Header Search Paths"...
Read more >
Xcode add header search path | Apple Developer Forums
Select either the project or the target from the left side of the project editor. Click the Build Settings button at the top...
Read more >
2.3. Search Path - MIT
If you need to look for headers in a directory named -, write -I./-. There are several more ways to adjust the header...
Read more >
How add a Header Search Path to Xcode project via CMake?
In order for this to compile, in my project's plugin target, I needed to add the following Header Search path to declare that...
Read more >
Why does the header search path configured in Package.swift ...
swift to change my project dependency management into Swift Package Manager. So sad. I think it's quite unreasonable : (. 1 Like. 0xTim ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found