iOS 12 Beta performance issue

Hi.

Have someone seen the issue with _CFXPrefences system call performance on iOS 12 Beta?

I'm investigating the freezes on main when entering the first symbol in any text field/text view in the app. Time profiler says that these calls takes a lot of time on main:

203.00 ms 15.9%0 s _CFRelease
763.00 ms 59.8%0 s -[UIKeyboardImpl handleObserverCallback]


Inside it, I see this:

427.00 ms 33.4%0 s -[_CFXPreferences copyDictionaryForApp:withContainer:]


That happens on iPhone X on entering first symbol via keyboard in text field.

Also I've noticed that any call of NSUserDefaults also freezes the app with the same long time CFXPreferences on main.

It reproduces always when the app is built either by Xcode 9 or Xcode10 Beta 6.

Everything is OK on iOS 11. This does not reproduce for newly created.


UPD: I've also found that the main freezes are caused by switching keyboard mode from uppercase to lowercase (first symbol) and vice versa (clearing input field). Disabling autocapitalized feature in iOS settings almost fixes freezes.


Could anyone please help with it?

Thanks.

iOS 12 Beta performance issue
 
 
Q