IsaiasSantana / keyboard_utils

A Flutter plugin to check keyboard visibility.
MIT License
49 stars 49 forks source link

Not working on iOS with error #18

Closed oliverbytes closed 4 years ago

oliverbytes commented 4 years ago

I tried building and running on iOS and I get the below error logs

Failed to build iOS app
Error output from Xcode build:
↳
    2020-05-10 20:26:29.576 xcodebuild[3314:38519] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7f81d54a1680), Oliver’s iPhone, iPhone, 13.3.1 (17D50), b3d99ff4ed9f1a1a3aa41eb597b33b6ddc7d2752> == Underlying device preparation errors ==
    2020-05-10 20:26:29.576 xcodebuild[3314:38519] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7f81d54a1680), Oliver's iPhone, iPhone, 13.0 (17A577), b3d99ff4ed9f1a1a3aa41eb597b33b6ddc7d2752> -- Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode.
    Domain: com.apple.platform.iphoneos
    Code: 5
    Failure Reason: allowsSecureServices: 1. isConnected: 0. Platform: <DVTPlatform:0x7f81e542a4c0:'com.apple.platform.iphoneos':<DVTFilePath:0x7f81e542a440:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>. DTDKDeviceIdentifierIsIDID: 0
    --
    2020-05-10 20:26:29.576 xcodebuild[3314:38519] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7f81d54a1680), Oliver’s iPhone, iPhone, 13.3.1 (17D50), b3d99ff4ed9f1a1a3aa41eb597b33b6ddc7d2752> == END: Underlying device preparation errors ==
    2020-05-10 20:26:29.665 xcodebuild[3314:38519] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7f81d54a1680), Oliver’s iPhone, iPhone, 13.3.1 (17D50), b3d99ff4ed9f1a1a3aa41eb597b33b6ddc7d2752> == Underlying device preparation errors ==
    2020-05-10 20:26:29.665 xcodebuild[3314:38519] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7f81d54a1680), Oliver's iPhone, iPhone, 13.0 (17A577), b3d99ff4ed9f1a1a3aa41eb597b33b6ddc7d2752> -- Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode.
    Domain: com.apple.platform.iphoneos
    Code: 5
    Failure Reason: allowsSecureServices: 1. isConnected: 0. Platform: <DVTPlatform:0x7f81e542a4c0:'com.apple.platform.iphoneos':<DVTFilePath:0x7f81e542a440:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>. DTDKDeviceIdentifierIsIDID: 0
    --
    2020-05-10 20:26:29.665 xcodebuild[3314:38519] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7f81d54a1680), Oliver’s iPhone, iPhone, 13.3.1 (17D50), b3d99ff4ed9f1a1a3aa41eb597b33b6ddc7d2752> == END: Underlying device preparation errors ==
    ** BUILD FAILED **
Xcode's output:
↳
    /Users/nemoryoliver/Development/flutter/.pub-cache/hosted/pub.dartlang.org/keyboard_utils-1.2.1/ios/Classes/SwiftKeyboardUtilsPlugin.swift:49:66: error: 'keyboardWillShowNotification' has been renamed to 'NSNotification.Name.UIKeyboardWillShow'
                                                   name: UIResponder.keyboardWillShowNotification,
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                     NSNotification.Name.UIKeyboardWillShow
    UIKit.UIResponder:3:22: note: 'keyboardWillShowNotification' was introduced in Swift 4.2
        public class let keyboardWillShowNotification: NSNotification.Name
                         ^
    /Users/nemoryoliver/Development/flutter/.pub-cache/hosted/pub.dartlang.org/keyboard_utils-1.2.1/ios/Classes/SwiftKeyboardUtilsPlugin.swift:54:66: error: 'keyboardWillHideNotification' has been renamed to 'NSNotification.Name.UIKeyboardWillHide'
                                                   name: UIResponder.keyboardWillHideNotification,
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
IsaiasSantana commented 4 years ago

@nemoryoliver What is your swift project version?