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

compile errors with swift 4.1 and xcode 9.3 #302

Closed
benchd opened this issue Apr 3, 2018 · 9 comments
Closed

compile errors with swift 4.1 and xcode 9.3 #302

benchd opened this issue Apr 3, 2018 · 9 comments

Comments

@benchd
Copy link

benchd commented Apr 3, 2018

I am trying to update my app from swift 3 to swift for 4 and getting compile errors on Scopes.swift
on scope() "Missing argument for parameter #1 in call,
public typealias Closure = (Void) -> Void "When calling this function in Swift 4 or later, you must pass a '()' tuple; did you mean for the input type to be '()'?"

I created a small test app with just the swifter pod and getting the same thing.

I am using xcode 9.3, in build settings I have tried setting the Swift Language Version to unspecified and Swift 4.1 but I am getting the same errors when I do a Product clean and then Product Build
My podfile has:
pod 'Swifter', '~> 1.3.3'

@neosinha
Copy link

neosinha commented Apr 4, 2018

I am experiencing the same problem.

@CristianDRM
Copy link

CristianDRM commented Apr 4, 2018

I noticed that the library was updated to swift in 1.4.0 release, but not published in cocoapods.
Did you know when it will be published?

@kimaldis
Copy link

+1. Same compile errors.

@karanmagdani-zz
Copy link

I am experiencing the same problem

@neosinha
Copy link

I got around by pulling in the source files directly and creating a "group" called "SwifterFiles". Of course we cannot use "import Swifter" anymore but the "HttpServer" object is available directly.

@uniformity-matters
Copy link

Same problem here.

@muskacirca
Copy link

same error

@jotaemepereira
Copy link

I've just fixed using the 1.4.2 release. I've added this to my Podfile and it's working:

pod 'Swifter', :git => 'https://github.com/httpswift/swifter.git', :tag => '1.4.2']

@Vkt0r
Copy link
Member

Vkt0r commented Oct 24, 2018

A new version was released 1.4.5 please feel free to open it again in the issue persist 😅.

@Vkt0r Vkt0r closed this as completed Oct 24, 2018
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

9 participants