Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Errors #5

Closed
zamith opened this issue Jan 1, 2015 · 4 comments
Closed

Type Errors #5

zamith opened this issue Jan 1, 2015 · 4 comments

Comments

@zamith
Copy link

zamith commented Jan 1, 2015

I keep getting

Use of undeclared type 'htmlDocPtr'

And similar type errors. I'm assuming there is some lib I did not link correctly, even though I followed the Usage on the README.

@tid-kijyun
Copy link
Owner

You don't seem to run the step 2 .

FYI:
objc-bridging-header

@zamith
Copy link
Author

zamith commented Jan 2, 2015

That fixes it.

Thanks.

@sandalsoft
Copy link

I'm having the same issue as @zamith . Adding [my project]/Swift-HTML-Parser-Bridging-Header.h gives me the following error:

<unknown>:0: error: bridging header '/Users/eric/Development/Projects/iOS/RoadWarriorRadio/RoadWarriorRadio/Swift-HTML-Parser-Bridging-Header.h' does not exist

When I remove [my project] and just use Swift-HTML-Parser-Bridging-Header.h I get the use of undeclared type ... errors throughout HTMLNode.swift and HTMLParser.swift.

I'm using XCode 6.3 release (6D570) in a new clean project. Any suggestions?

@tid-kijyun
Copy link
Owner

Please refer to Swift-HTML-Parser-Bridging-Header.h.

//
//  Use this file to import your target's public headers that you would like to expose to Swift.
//

#import <libxml/HTMLtree.h>
#import <libxml/xpath.h>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants