shiv19 / nativescript-cfalert-dialog

CFAlertDialog Wrapper for NativeScript
Apache License 2.0
42 stars 21 forks source link

Error with version 3.1 of the iOS Pods #14

Closed fthuin closed 5 years ago

fthuin commented 6 years ago

If the demo apps cannot help and there is no issue for your problem, tell us about it

/my-project/platforms/ios/Pods/CFAlertViewController/CFAlertViewController/Cells/CFAlertActionTableViewCell.swift:170:49: error: 'CellStyle' is not a member type of 'UITableViewCell'
    public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
                                ~~~~~~~~~~~~~~~ ^
/my-project/platforms/ios/Pods/CFAlertViewController/CFAlertViewController/Cells/CFAlertActionTableViewCell.swift:170:21: error: initializer does not override a designated initializer from its superclass
    public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
           ~~~~~~~~ ^
/my-project/platforms/ios/Pods/CFAlertViewController/CFAlertViewController/Cells/CFAlertTitleSubtitleTableViewCell.swift:67:49: error: 'CellStyle' is not a member type of 'UITableViewCell'
    public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
                                ~~~~~~~~~~~~~~~ ^
/Users/fthuin/Documents/tabacstop-nativescript/platforms/ios/Pods/CFAlertViewController/CFAlertViewController/Cells/CFAlertTitleSubtitleTableViewCell.swift:67:21: error: initializer does not override a designated initializer from its superclass
    public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
           ~~~~~~~~ ^
/my-project/platforms/ios/Pods/CFAlertViewController/CFAlertViewController/CFAlertViewController.swift:359:103: error: type 'UIResponder' has no member 'keyboardWillShowNotification'
        NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow(_:)), name: UIResponder.keyboardWillShowNotification, object: nil)
                                                                                                      ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/my-project/platforms/ios/Pods/CFAlertViewController/CFAlertViewController/CFAlertViewController.swift:360:103: error: type 'UIResponder' has no member 'keyboardWillHideNotification'
        NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillHide(_:)), name: UIResponder.keyboardWillHideNotification, object: nil)
                                                                                                      ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/my-project/platforms/ios/Pods/CFAlertViewController/CFAlertViewController/CFAlertViewController.swift:363:121: error: type 'UITextField' has no member 'textDidBeginEditingNotification'
        NotificationCenter.default.addObserver(self, selector: #selector(textViewOrTextFieldDidBeginEditing(_:)), name: UITextField.textDidBeginEditingNotification, object: nil)
                                                                                                                        ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/fthuin/Documents/tabacstop-nativescript/platforms/ios/Pods/CFAlertViewController/CFAlertViewController/CFAlertViewController.swift:364:121: error: type 'UITextView' has no member 'textDidBeginEditingNotification'
        NotificationCenter.default.addObserver(self, selector: #selector(textViewOrTextFieldDidBeginEditing(_:)), name: UITextView.textDidBeginEditingNotification, object: nil)
                                                                                                                        ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/my-project/platforms/ios/Pods/CFAlertViewController/CFAlertViewController/CFAlertViewController.swift:607:34: error: type 'UIResponder' has no member 'keyboardFrameEndUserInfoKey'
            if let kbRect = info[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect {
                                 ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/my-project/platforms/ios/Pods/CFAlertViewController/CFAlertViewController/CFAlertViewController.swift:783:16: error: type 'UITableView' has no member 'automaticDimension'
        return UITableView.automaticDimension
               ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
/my-project/platforms/ios/Pods/CFAlertViewController/CFAlertViewController/CFAlertViewController.swift:787:16: error: type 'UITableView' has no member 'automaticDimension'
        return UITableView.automaticDimension
               ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
** ARCHIVE FAILED **

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

tns run iOS

Is there any code involved?

It seems to be related to the latest version of the Pod because I can fix it by modifying Podfile

Previous: pod 'CFAlertViewController'

Working: pod 'CFAlertViewController', '3.0'

shiv19 commented 6 years ago

@fthuin thanks for reporting this.

I'll take a look at the changes in latest version of the pod and update it accordingly. But expect some delay. I'm not free until 31 Oct

Until then please use the workaround you mentioned

sanghyun5958 commented 6 years ago

Same issue here.. Plz solve this problem. thank you

amittiwari725 commented 6 years ago

I am also getting same issue here.. Plz solve this problem. thank you

skhye05 commented 5 years ago

I am also experimenting the same issue here. any help??

shiv19 commented 5 years ago

@skhye05 are you using version v1.0.14?

skhye05 commented 5 years ago

@shiv19 yes i am using that version

skhye05 commented 5 years ago

@shiv19 I was using xcode9, once I update everything works perfectly. sorry for the inconvenience.