Closed fxcoudert closed 6 years ago
You try to compile with swift 4.
The project has not been update for it. So you could find a way to use swift 3 until that.
I am using the Apple-provided tools (Xcode 9) on macOS 10.13. So Natalie is not supported on latest macOS or with Xcode 9?
Xcode 9 could compile with swift 3.2 But by default swift 4
You could open the project with xcode and compile it
I do not know the command line argument to force swift version
If I open in Xcode and compile it I get the same error:
I have not maybe due to some compile cash But when I clean my project I have also the same error with swift 3,2
I you want to make a rapid patch
Edit SWXMLHash.swift
go to public enum XMLIndexer: Sequence {
and in next line rename case Element
to case element
using refactor (or replace each .Element
to .element
)
OR
SWXMLHash has been updated, but Nathalie provide a old version You can try with this one if in swift 3.2 https://github.com/drmohundro/SWXMLHash/blob/master/Source/SWXMLHash.swift
do you want to prepare PR with that update? I'm happy to merge
I could, by updating SWXMLHash You could assign to me this issue, if you want (a way to not forget)
Cannot build 0.5.0 on macOS 10.13 with Xcode 9: