- Add in Xcode dependency to library https://github.com/SwiftyJSON/SwiftyJSON
- Run in Android Studio
Result:
48/156] Compiling SwiftyJSON SwiftyJSON.swift
/Users/juliabulantseva/Documents/GitHub/swift4j-examples/Android/WeatherApp/app/build/swiftpm/WeatherService/checkouts/SwiftyJSON/Source/SwiftyJSON/SwiftyJSON.swift:1215:51: error: ambiguous use of operator '<'
1213 |
1214 | switch (lhs.type, rhs.type) {
1215 | case (.number, .number): return lhs.rawNumber < rhs.rawNumber
| - error: ambiguous use of operator '<' 1216 | case (.string, .string): return lhs.rawString < rhs.rawString 1217 | default: return false : 1249 | } 1250 | 1251 | func < (lhs: NSNumber, rhs: NSNumber) -> Bool { | - note: found this candidate
1252 |
1253 | switch (lhs.isBool, rhs.isBool) {
Foundation.NSNumber.<:2:20: note: found this candidate in module 'Foundation'
1 | class NSNumber {
2 | public static func < (lhs: NSNumber, rhs: NSNumber) -> Bool}
| `- note: found this candidate in module 'Foundation'
Result:
48/156] Compiling SwiftyJSON SwiftyJSON.swift
/Users/juliabulantseva/Documents/GitHub/swift4j-examples/Android/WeatherApp/app/build/swiftpm/WeatherService/checkouts/SwiftyJSON/Source/SwiftyJSON/SwiftyJSON.swift:1215:51: error: ambiguous use of operator '<'
1213 |
1214 | switch (lhs.type, rhs.type) {
1215 | case (.number, .number): return lhs.rawNumber < rhs.rawNumber
|
- error: ambiguous use of operator '<' 1216 | case (.string, .string): return lhs.rawString < rhs.rawString 1217 | default: return false : 1249 | } 1250 | 1251 | func < (lhs: NSNumber, rhs: NSNumber) -> Bool { |- note: found this candidate1252 |
1253 | switch (lhs.isBool, rhs.isBool) {
Foundation.NSNumber.<:2:20: note: found this candidate in module 'Foundation'
1 | class NSNumber {
2 | public static func < (lhs: NSNumber, rhs: NSNumber) -> Bool}
| `- note: found this candidate in module 'Foundation'