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

error: cannot invoke initializer for type 'Bool' with an argument list of type '(ObjCBool)' #55

Closed
futurejones opened this issue Apr 29, 2018 · 2 comments

Comments

@futurejones
Copy link

Hi, I am using Swift 4.1 on Linux Debian and I am getting the following error.

/home/rock64/FileCreator/.build/checkouts/Files.git-4953067514002805256/Sources/Files.swift:1040:34: error: cannot invoke initializer for type 'Bool' with an argument list of type '(ObjCBool)'
    var boolValue: Bool { return Bool(self) }

@kezzico
Copy link

kezzico commented Oct 27, 2018

ObjCBool looks like this on MacOS

public struct ObjCBool : ExpressibleByBooleanLiteral {

    public init(_ value: Bool)

    /// The value of `self`, expressed as a `Bool`.
    public var boolValue: Bool { get }

    /// Create an instance initialized to `value`.
    public init(booleanLiteral value: Bool)
}

@JohnSundell
Copy link
Owner

Files should now be fully Linux-compatible, however, it currently only supports Swift 5.0 and above.

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

3 participants