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

XCode 10 and Swift 4.2 fails to build #51

Closed
DamascenoRafael opened this issue Sep 21, 2018 · 4 comments
Closed

XCode 10 and Swift 4.2 fails to build #51

DamascenoRafael opened this issue Sep 21, 2018 · 4 comments
Assignees
Labels

Comments

@DamascenoRafael
Copy link

The pod does not compile with Xcode 10 and Swift 4.2

Installation Type

  • Cocoapods

Additional context

/Users/Damasceno/Documents/GitHub/caronae-ios/Pods/InputMask/Source/InputMask/InputMask/Classes/View/MaskedTextFieldDelegate.swift:167:72: error: 'UITextFieldDidEndEditingReason' has been renamed to 'UITextField.DidEndEditingReason'
    open func textFieldDidEndEditing(_ textField: UITextField, reason: UITextFieldDidEndEditingReason) {
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                       UITextField.DidEndEditingReason
UIKit.UITextFieldDidEndEditingReason:3:18: note: 'UITextFieldDidEndEditingReason' was obsoleted in Swift 4.2
public typealias UITextFieldDidEndEditingReason = UITextField.DidEndEditingReason
@ultimate-deej
Copy link

As a temporary workaround, open Pods project settings, select InputMask target, and change swift language version to Swift 4. Note that you need to do this every time you run pod install.

@DamascenoRafael
Copy link
Author

It would be interesting to see the PR merged since currently most libs are already updating their version for swift 4.2.

@taflanidi taflanidi self-assigned this Oct 1, 2018
@taflanidi
Copy link
Collaborator

I'm going to issue an update today or tomorrow.
Please, stay tuned.

@taflanidi taflanidi added the bug label Oct 1, 2018
@taflanidi
Copy link
Collaborator

Fixed in 4.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants