Declaration of 'xmlKeepBlanksDefault' must

2020-08-13 06:02发布

问题:

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.