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

Redefinition of module 'libxml2' in Xcode 9.3 beta iOS 11.3 beta #176

Open
3 of 10 tasks
mcfans opened this issue Jan 26, 2018 · 19 comments
Open
3 of 10 tasks

Redefinition of module 'libxml2' in Xcode 9.3 beta iOS 11.3 beta #176

mcfans opened this issue Jan 26, 2018 · 19 comments

Comments

@mcfans
Copy link
Contributor

mcfans commented Jan 26, 2018

Description:Redefinition of module 'libxml2' in Xcode 9.3 beta iOS 11.3 beta

2018-01-26 11 40 49

Installation method:

  • Carthage
  • CocoaPods
  • Manually

Library version:

  • v2.0.0
  • v1.1.0
  • v1.0.2
  • other: (Please fill in the version you are using.)
    feature 4.0

Xcode version:

  • 8.0
  • 7.3.1
  • other: (Please fill in the version you are using.)
    Xcode9.3 beta
@glagnar
Copy link

glagnar commented Feb 5, 2018

screen shot 2018-02-05 at 20 25 49

I get the same error, in Xcode 9.3

@mcfans
Copy link
Contributor Author

mcfans commented Feb 6, 2018

@glagnar try #177

@notabene00
Copy link

Same here

@glagnar
Copy link

glagnar commented Feb 6, 2018

@mcfans Thank you, this works - also in the newest Beta 2.

@MarekSlaninka
Copy link

Will it also be fixed in cocoapods version 4.0.0 ?

@mcfans
Copy link
Contributor Author

mcfans commented Feb 8, 2018 via email

@lemonkey
Copy link

FYI

...Pods/Kanna/Sources/Kanna/CSS.swift:153:28: error: 'range(at:)' has been renamed to 'rangeAt(_:)' let range = result.range(at: at)

@iwc
Copy link

iwc commented Apr 2, 2018

The error: 'range(at:)' has been renamed to 'rangeAt(_:) issue is happening for me when I pull it in via Cocoapods, using latest git commit references don't work either. My toplevel project is building under swift 4.1.

Update: Scratch that above...I found a directive that was forcing Kanna to build with the wrong Swift version. Fixing that has the default cocoapod ~> 4.0.0 working.

@SunnyGit
Copy link

SunnyGit commented Apr 3, 2018

screen shot 2018-04-03 at 1 05 02 pm

I still the same issues and I am running Swift 3.2. Is there something that I am missing here ?

I mean the range at issues

@sathoeni
Copy link

sathoeni commented Apr 4, 2018

@SunnyGit got the same error, i'm also building for swift 3.2 / 3.3

@SunnyGit
Copy link

SunnyGit commented Apr 4, 2018

Is it necessary to upgrade to Swift 4.0 ? Can some address this issue.

@tid-kijyun
Copy link
Owner

I am going to solve this issue. For now, using branch feature/v3.0.0 may solve this issue.

@SunnyGit
Copy link

SunnyGit commented Apr 5, 2018

Thank you that helps.

@sathoeni
Copy link

sathoeni commented Apr 5, 2018

Thanks, this branch works! 🎉

@o1xhack
Copy link

o1xhack commented Apr 13, 2018

How could this been fixed if I'm using Swfit 3, with Kanna ~> 2.1.0???

@tid-kijyun
Copy link
Owner

I've just updated README.md.
@o1xhack For now, please use the feature/v3.0.0 branch.

Note: I plan to release 3.0.0 this weekend.

@o1xhack
Copy link

o1xhack commented Apr 13, 2018

@tid-kijyun Thanks, it now do not get that error.

I'm using if let doc = Kanna.HTML(html: html, encoding: String.Encoding.utf8). But it give me the error after I do the feature branch. So I add try? and it becomes if let doc = try? Kanna.HTML(html: html, encoding: String.Encoding.utf8).

But it still give me the error:

2018-04-12 22 56 57

@andrewtheis
Copy link

andrewtheis commented Aug 9, 2018

The "libxml2 already defined" error has returned on macOS Mojave / Xcode 10 betas.

@iDevPro
Copy link

iDevPro commented Apr 6, 2020

redefinition on version 5.2.2 and Catalina + Xcode 11 :)

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