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

Doesn't compile on Linux OS #1087

Open
DeeGeeMan opened this issue Dec 29, 2020 · 5 comments
Open

Doesn't compile on Linux OS #1087

DeeGeeMan opened this issue Dec 29, 2020 · 5 comments

Comments

@DeeGeeMan
Copy link

DeeGeeMan commented Dec 29, 2020

Using a Docker container to build my app with a reference to SwiftyJSON module, I get the following error:

Dockerfile:
FROM swift:latest as builder
WORKDIR /app
COPY ./Sources Sources/
COPY Package.swift Package.swift
RUN swift build
CMD ["sh"]

Error:
/app/.build/checkouts/SwiftyJSON/Source/SwiftyJSON/SwiftyJSON.swift:1215:51: error: ambiguous use of operator '<'
case (.number, .number): return lhs.rawNumber < rhs.rawNumber
^
/app/.build/checkouts/SwiftyJSON/Source/SwiftyJSON/SwiftyJSON.swift:1251:6: note: found this candidate
func < (lhs: NSNumber, rhs: NSNumber) -> Bool {
^
Foundation.NSNumber:2:24: note: found this candidate
public static func < (lhs: NSNumber, rhs: NSNumber) -> Bool

@drewmccormack
Copy link

Getting the same thing on Heroku

@GregHilston
Copy link

This is still an issue in Ubuntu 21.04

Duplicate issue of #1038

@yangzhichina
Copy link

Still an issue in Swift 5.6.1 on Ubuntu 20.04.

@Awesomeplayer165
Copy link

Still an issue on Debian (Ubuntu 20.04) with Swift 5.8.1. Is there a workaround for this right now?

@drewmccormack
Copy link

drewmccormack commented Jul 21, 2023

The workaround I have used is to use the commit in the pull request.

https://github.com/seriyvolk83/SwiftyJSON.git
01134a4fa12d07c4b89575f2e27c8de121466dbb

01134a4

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

5 participants