LoginSignup
2
1

More than 5 years have passed since last update.

Xcode9.3アップデート時のlibxml2のエラーの対処法

Posted at

2018/3/29にリリースされたXcode9.3(9E145)でアップデートした際にエラーが発生してビルドできなくなったのでその対処法のメモです。

エラー内容

Objective-CコードのXMLパース処理で以下のエラーが発生していました。

image.png

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>
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1