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

Does not archive after update to swift4.1 and latest xcode and sdk #17

Closed
SergeyPetrachkov opened this issue Apr 6, 2018 · 1 comment

Comments

@SergeyPetrachkov
Copy link
Contributor

❌ /Users/sergeypetrachkov/Money.Cashier.iOS/src/Pods/InputKitSwift/InputKitSwift/LimitedTextView.swift:226:33: value of optional type '((UITextView) -> Bool)?' not unwrapped; did you mean to use '!' or '?'?

flag = realDelegate.textViewShouldEndEditing(textView)
^

❌ /Users/sergeypetrachkov/Money.Cashier.iOS/src/Pods/InputKitSwift/InputKitSwift/LimitedTextView.swift:234:26: value of optional type '((UITextView) -> Void)?' not unwrapped; did you mean to use '!' or '?'?

realDelegate.textViewDidBeginEditing(textView)
^

❌ /Users/sergeypetrachkov/Money.Cashier.iOS/src/Pods/InputKitSwift/InputKitSwift/LimitedTextView.swift:241:26: value of optional type '((UITextView) -> Void)?' not unwrapped; did you mean to use '!' or '?'?

realDelegate.textViewDidEndEditing(textView)
^

❌ /Users/sergeypetrachkov/Money.Cashier.iOS/src/Pods/InputKitSwift/InputKitSwift/LimitedTextView.swift:250:33: value of optional type '((UITextView, NSRange, String) -> Bool)?' (aka 'Optional<(UITextView, _NSRange, String) -> Bool>') not unwrapped; did you mean to use '!' or '?'?

flag = realDelegate.textView(textView, shouldChangeTextIn: range, replacementText: text)
^

❌ /Users/sergeypetrachkov/Money.Cashier.iOS/src/Pods/InputKitSwift/InputKitSwift/LimitedTextView.swift:285:26: value of optional type '((UITextView) -> Void)?' not unwrapped; did you mean to use '!' or '?'?

realDelegate.textViewDidChange(textView)
^

❌ /Users/sergeypetrachkov/Money.Cashier.iOS/src/Pods/InputKitSwift/InputKitSwift/LimitedTextView.swift:292:26: value of optional type '((UITextView) -> Void)?' not unwrapped; did you mean to use '!' or '?'?

realDelegate.textViewDidChangeSelection(textView)
^

❌ /Users/sergeypetrachkov/Money.Cashier.iOS/src/Pods/InputKitSwift/InputKitSwift/LimitedTextView.swift:300:33: value of optional type '((UITextView, URL, NSRange, UITextItemInteraction) -> Bool)?' (aka 'Optional<(UITextView, URL, _NSRange, UITextItemInteraction) -> Bool>') not unwrapped; did you mean to use '!' or '?'?

flag = realDelegate.textView(textView, shouldInteractWith: URL, in: characterRange, interaction: interaction)
^

❌ /Users/sergeypetrachkov/Money.Cashier.iOS/src/Pods/InputKitSwift/InputKitSwift/LimitedTextView.swift:310:33: value of optional type '((UITextView, NSTextAttachment, NSRange, UITextItemInteraction) -> Bool)?' (aka 'Optional<(UITextView, NSTextAttachment, _NSRange, UITextItemInteraction) -> Bool>') not unwrapped; did you mean to use '!' or '?'?

flag = realDelegate.textView(textView, shouldInteractWith: textAttachment, in: characterRange, interaction: interaction)
^

❌ /Users/sergeypetrachkov/Money.Cashier.iOS/src/Pods/InputKitSwift/InputKitSwift/LimitedTextView.swift:319:33: value of optional type '((UITextView, URL, NSRange) -> Bool)?' (aka 'Optional<(UITextView, URL, _NSRange) -> Bool>') not unwrapped; did you mean to use '!' or '?'?

flag = realDelegate.textView(textView, shouldInteractWith: URL, in: characterRange)
^

❌ /Users/sergeypetrachkov/Money.Cashier.iOS/src/Pods/InputKitSwift/InputKitSwift/LimitedTextView.swift:328:33: value of optional type '((UITextView, NSTextAttachment, NSRange) -> Bool)?' (aka 'Optional<(UITextView, NSTextAttachment, _NSRange) -> Bool>') not unwrapped; did you mean to use '!' or '?'?

etc

@SergeyPetrachkov
Copy link
Contributor Author

when you switch from objc style (conformsTo checks) to swift style and do
if let delegate = self.realDelegate as? UITextFieldDelegate {}
then archiving goes without any problem

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

No branches or pull requests

2 participants