You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
Edit Makefile, it should only need to change were SoM is located
Enable Equatable and Comparable
diff --git a/Versions/StaticVersion.swift b/Versions/StaticVersion.swift
index 82c19e3..c80ab37 100644
--- a/Versions/StaticVersion.swift+++ b/Versions/StaticVersion.swift@@ -10,7 +10,7 @@ extension Array {
}
}
-public struct Version { //}: Equatable, Comparable {+public struct Version : Equatable, Comparable {
public let major : Int
public let minor : Int
Run make
$ make
/Users/poupou/Downloads/swift-o-matic/bin/swift/bin/swiftc -sdk `xcrun --show-sdk-path` -emit-module -emit-library -module-name XamVersions Versions/*.swift
Versions/StaticVersion.swift:23:40: warning: 'characters' is deprecated: Please use String or Substring directly
let parts: Array<String> = version.characters.split { $0 == "." }.map { String($0) }
^
Versions/Versions.swift:24:22: warning: 'characters' is deprecated: Please use String or Substring directly
return self[self.characters.index(self.startIndex, offsetBy: i)]
^
Versions/Versions.swift:34:12: warning: 'substring(with:)' is deprecated: Please use String slicing subscript.
return substring(with: characters.index(startIndex, offsetBy: r.lowerBound)..<characters.index(startIndex, offsetBy: r.upperBound))
^
Versions/Versions.swift:34:28: warning: 'characters' is deprecated: Please use String or Substring directly
return substring(with: characters.index(startIndex, offsetBy: r.lowerBound)..<characters.index(startIndex, offsetBy: r.upperBound))
^
Versions/Versions.swift:34:83: warning: 'characters' is deprecated: Please use String or Substring directly
return substring(with: characters.index(startIndex, offsetBy: r.lowerBound)..<characters.index(startIndex, offsetBy: r.upperBound))
^
mono --debug /Users/poupou/Downloads/swift-o-matic/lib/swift-o-matic/tom-swifty.exe --retain-swift-wrappers --swift-bin-path /Users/poupou/Downloads/swift-o-matic/bin/swift/bin -o tsout -C . -module-name XamVersions
Warnings and errors
Error (Fatal): Swift name 'Element' needs to have a module. (TypeMapException)
Error (Fatal): Unable to find C# reference for swift class 'Swift.Character'. (TypeMapException)
csc -nostdlib -noconfig -r:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/Xamarin.Mac//mscorlib.dll -r:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/Xamarin.Mac//System.dll -r:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/reference/mobile/Xamarin.Mac.dll -unsafe -lib:/Users/poupou/Downloads/swift-o-matic/lib/SwiftInterop/ -r:SwiftRuntimeLibrary.Mac.dll -lib:. tsout/*.cs -t:library -out:XamVersions.dll
Microsoft (R) Visual C# Compiler version 2.7.0.62620 (e873e693)
Copyright (C) Microsoft Corporation. All rights reserved.
tsout/VersionXamVersions.cs(15,59): error CS0535: 'Version' does not implement interface member 'ISwiftComparable.OpLess(ISwiftComparable)'
tsout/VersionXamVersions.cs(15,42): error CS0535: 'Version' does not implement interface member 'ISwiftEquatable.OpEquals(ISwiftEquatable)'
make: *** [all] Error 1
Source: [email protected]:zenangst/Versions.git
Makefile
With 2018-04-11 update I get
note: I also have this error (once) in CommandCougar
The text was updated successfully, but these errors were encountered: