React-native-contacts: property 'windowScene' not found on object of type 'UIWindow *'

Created on 15 Mar 2020  路  6Comments  路  Source: morenoh149/react-native-contacts

Since updating to 5.1.0 from 5.0.7 I now get the following error in the Xcode build:

node_modules/react-native-contacts/ios/RCTContacts/RCTContacts.m:645:106: error: property 'windowScene' not found on object of type 'UIWindow *'
            UIView *statusBar = [[UIView alloc]initWithFrame:[UIApplication sharedApplication].keyWindow.windowScene.statusBarManager.statusBarFrame];

Most helpful comment

i don鈥檛 know, at the moment i just fixed the version to the 5.0.7 in my package.json

All 6 comments

Same here with xcode 10.2.1; upgrading to the 11.3.1 does solve the problem

Is there any way to still support Xcode 10?

i don鈥檛 know, at the moment i just fixed the version to the 5.0.7 in my package.json

"windowScene" is available in iOS 13 SDK, just compile with Xcode 11 it will resolve the issue.
https://developer.apple.com/documentation/uikit/uiapplication/1622924-keywindow

Any solution in xcode 10.2.1? :'(

@ermarin I've pinned my version of react-native-contacts to 5.0.7 until I'm able to update my project to Xcode 11.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

msutyak picture msutyak  路  9Comments

suryaiiit picture suryaiiit  路  5Comments

prathd picture prathd  路  5Comments

krishna201 picture krishna201  路  4Comments

luism3861 picture luism3861  路  9Comments