Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

iOS build error : Property 'windowScene' not found on object of type 'UIWindow *' #34

Closed
azandrew-sidoine opened this issue Sep 26, 2019 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@azandrew-sidoine
Copy link

azandrew-sidoine commented Sep 26, 2019

/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_statusbarcolor-0.2.2/ios/Classes/FlutterStatusbarcolorPlugin.m:71:105:
    error: property 'windowScene' not found on object of type 'UIWindow *'
               UIView* statusBar = [[UIView alloc]initWithFrame:[UIApplication
               sharedApplication].keyWindow.windowScene.statusBarManager.statusBarFrame];
@softower
Copy link

I have the same problem! Unable to build the app

@azandrew-sidoine
Copy link
Author

According to the Apple developper documentation property keyWindow seems deprecated on class UIApplication https://developer.apple.com/documentation/uikit/uiapplication/1622924-keywindow

@mchome mchome added the duplicate This issue or pull request already exists label Sep 26, 2019
@mchome
Copy link
Owner

mchome commented Sep 26, 2019

Goto #33.

@mchome mchome closed this as completed Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants