Status bar height is getting wrong on iPhone 14 Pro series only from TestFlight

Hello and thank you in advance for your help,

I noticed that on iPhone 14 Pro and 14 Pro Max, the size of the status bar obtained by:

UIApplication.shared.statusBarFrame.height or let height = view.window?.windowScene?.statusBarManager?.statusBarFrame.height ?? 0

Is not the right one.

Indeed, it returns a height of 44.0 when a run my application from TestFlight (on debug mode no problem at all, this drives me nuts) while on these devices it should be 54.0 I do not understand why. Other people encounter this problem?

Thank you !

Answered by Scott in 730338022

See also this thread about similar weird behavior for iPhone 14 Pro models with TestFlight.

Accepted Answer

See also this thread about similar weird behavior for iPhone 14 Pro models with TestFlight.

I have the same issue. No mention of a fix in 16.1 beta 3 either. Running through Xcode it works fine but getting the app from TestFlight or the AppStore breaks the 14 pro series.

It seems that the problem is solved with iOS 16.1 RC. Thank you all for your responses

Status bar height is getting wrong on iPhone 14 Pro series only from TestFlight
 
 
Q