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

Installation Problem #32

Closed
nexussmart opened this issue Nov 13, 2019 · 2 comments · Fixed by #35
Closed

Installation Problem #32

nexussmart opened this issue Nov 13, 2019 · 2 comments · Fixed by #35
Assignees

Comments

@nexussmart
Copy link

Hi,

When i run my project, I get the following errors

   /....../flutter/.pub-cache/hosted/pub.dartlang.org/hardware_buttons-0.2.1/ios/Classes/VolumeButtenStreamHandler.swift:43:61: error: 'UIApplicationDidBecomeActive' has been renamed to 'UIApplication.didBecomeActiveNotification'
           notificationCenter.removeObserver(Notification.Name.UIApplicationDidBecomeActive)
                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                               UIApplication.didBecomeActiveNotification
   UIKit.NSNotification.Name:11:23: note: 'UIApplicationDidBecomeActive' was obsoleted in Swift 4.2
       public static let UIApplicationDidBecomeActive: NSNotification.Name
                         ^
   /....../flutter/.pub-cache/hosted/pub.dartlang.org/hardware_buttons-0.2.1/ios/Classes/VolumeButtenStreamHandler.swift:49:42: error: 'AVAudioSessionCategoryAmbient' has been renamed to 'AVAudioSession.Category.ambient'
               try audioSession.setCategory(AVAudioSessionCategoryAmbient)
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                            AVAudioSession.Category.ambient
   AVFoundation.AVAudioSessionCategoryAmbient:3:12: note: 'AVAudioSessionCategoryAmbient' was obsoleted in Swift 3
   public let AVAudioSessionCategoryAmbient: AVAudioSession.Category

Do you have an idea ?

Thanks

@eojine
Copy link
Member

eojine commented Nov 15, 2019

Thanks. I fixed this problem
Try again!

@nexussmart
Copy link
Author

Thanks

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

Successfully merging a pull request may close this issue.

2 participants