Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

enter image description here

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

Can anyone please help with this ?

like image 265
mrunal thanki Avatar asked Jan 29 '18 12:01

mrunal thanki


2 Answers

Update KissXML by running pod update KissXML.

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

like image 175
cahn Avatar answered Oct 22 '22 19:10

cahn


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.

like image 33
iSwapnil Avatar answered Oct 22 '22 17:10

iSwapnil