Skip to content

SwiftyJson library doesn't work in Android #3

@bulantsevajo

Description

@bulantsevajo
  1. Add in Xcode dependency to library https://github.com/SwiftyJSON/SwiftyJSON
  2. 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'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions