graetzer / GDataXML-HTML

HTML and XML parser for iOS and OSX, supports XPath
Apache License 2.0
289 stars 121 forks source link

add support for swift pod #17

Closed IvanChan closed 6 years ago

IvanChan commented 6 years ago

import <libxml/tree.h>

import <libxml/parser.h>

import <libxml/xmlstring.h>

import <libxml/HTMLparser.h>

import <libxml/xpath.h>

import <libxml/xpathInternals.h>

Headers import above in .h will fail the pod for swift project, just hide those libxml things to .m will satisfy swift pod.

Further more, the module map is useless

artemyarulin commented 6 years ago

Thanks!

IvanChan commented 6 years ago

Will you release a new tag and push for cocoapods?

artemyarulin commented 6 years ago

Ahm, not sure I have an access to that, @graetzer can you do that?

graetzer commented 6 years ago

Hm I'll need to check that

graetzer commented 6 years ago

done, @artemyarulin can you verify the published version works ?

artemyarulin commented 6 years ago

omg, I haven't done iOS development like for couple of years 😄 Sorry, would take ages to check it. @IvanChan can you please check?

IvanChan commented 6 years ago

Sorry for the delay

I create a objective-c/swift project with pod, try like below

 pod 'GDataXML-HTML', :git => 'https://github.com/graetzer/GDataXML-HTML.git', :branch=>'master'

both work well

hope it would help