xcrun
Mac OS X 10.9 で使用する既存のアプリケーションを構築したいと考えています。アプリケーションは libxml と統合されます。次のようなものが付属しています。
#include <libxml/parser.h>
テストのために、私は実行しました:
echo '#include <libxml/parser.h>' | xcrun clang -xc -v -
それは私に与えます
#include "..." search starts here:
#include <...> search starts here:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks (framework directory)
End of search list.
<stdin>:1:10: fatal error: 'libxml/parser.h' file not found
#include <libxml/parser.h>
重要なヘッダー検索パスは の下にあるように見えますがxcrun
、libxml2 がありません。実際のところ、libxml/*.h は以下のサブディレクトリにあります。
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include
すなわち
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2
このディレクトリ (.../usr/include/libxml2) を が尊重する検索パスに追加するにはどうすればよいxcrun
ですか?