Xcode9.3アップデート時のlibxml2のエラーの対処法
804 ワード
2018/3/29にリリースされたXcode9.3(9E145)でアップデートした際にエラーが発生してビルドできなくなったのでその対処法のメモです。
エラー内容
Objective-CコードのXMLパース処理で以下のエラーが発生していました。
Use of undeclared identifier 'XML_SAX2_MAGIC'
Definition of '_xmlSAXHandler' must be imported from module 'libxml2.parser' before it is required
対処方法
以下のようにlibxmlの必要なファイルをインポートするとビルドできるようになります。
#import <libxml/parser.h>
Author And Source
この問題について(Xcode9.3アップデート時のlibxml2のエラーの対処法), 我々は、より多くの情報をここで見つけました https://qiita.com/shtnkgm/items/73ef00ecd07ae68b894b著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .