honghaoz / Ji

Ji (戟) is an XML/HTML parser for Swift
MIT License
824 stars 64 forks source link

Swift 4, iOS 11, and Xcode 9 #45

Closed HackShitUp closed 7 years ago

HackShitUp commented 7 years ago

I'm persistently getting the error:

XPath error : Invalid predicate XPath error : Invalid expression

During build time for a project on iOS 11, Xcode 9, and Swift 4

honghaoz commented 7 years ago

@HackShitUp Thanks for your issue. It's probably from Swift 4, will check the compatibility issue with Swift 4.

HackShitUp commented 7 years ago

If you need help (although I don't know how much I can help you haha), feel free to reach out!

honghaoz commented 7 years ago

@HackShitUp Hi, I've fixed it in swift4 branch. I will wait until Xcode 9 officially released to publish to master.

In the meantime, you could put this into you Podfile to use it

pod 'Ji', :git=> 'git@github.com:honghaoz/Ji.git', :branch => 'swift4'
HackShitUp commented 7 years ago

Hi @honghaoz thank you so much for the update! 👍

1000copy commented 7 years ago

I am find the bug too. if you like http otherwise git protocols to github ,may be you like this :

    pod 'Ji', :git=> 'https://github.com/honghaoz/Ji.git', :branch => 'swift4'
the-freshlord commented 6 years ago

@HackShitUp Was switching to the swift4 branch do the trick? I am having the same problem when using Swift 4. See this issue: #47

henry-swe commented 6 years ago

Problem solved after using the branch. @honghaoz Please switch it to master.

honghaoz commented 6 years ago

@a211212abc Fixed and updated. Thanks