Declaration of 'xmlKeepBlanksDefault' must be imported from module 'libxml2.parser' before it is required

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 02:28:42

问题


When I try to compile and run my existing app with Xcode 9.3 beta It gives me errors like

Declaration of 'xmlKeepBlanksDefault' must be imported from module 'libxml2.parser' before it is required

Implicit declaration of function 'xmlKeepBlanksDefault' is invalid in C99

Its in the file DDXMLDocument.m of KissXML library. Issue already raised on it

Can anyone please help with this ?


回答1:


Update KissXML by running pod update KissXML.

See https://github.com/robbiehanson/KissXML/issues/95 for details.




回答2:


Above answer works for me, I updated it manually though.

1.Remove existing KissXML from project select move to thrash not by removing reference.

2.Download the zip from github link provided in above answer and extract.

  1. Drag and drop the KissXML Directory into project where you want to add and select copy if needed and select create groups.

  2. right click on imported directory and select show in finder, in directory check everything is copied and showing same in project as well.

This should solve the issue.



来源:https://stackoverflow.com/questions/48501624/declaration-of-xmlkeepblanksdefault-must-be-imported-from-module-libxml2-pars

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!