IOS 17 UserDefaults doesnt work as intented sharing data beetween app and widgetkit

Hi, I have an app that contains widgetkit elements. I have appgroup and everything used work fine before ios 17 and xcode 15 I was using suitname pattern like group.MY_TEAM_ID.com.xxxx.xxxxx and there was no problem with it. now xcode 15 complains like Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd. when I change suitname group.com.xxxx.xxxxx or any other suitname. I see data saved to userdefaults but reading data from widget site returns nil all the time.

Use the keychain sharing. Userdefaults no longer supports sharing like this.

Thanks for answer. I will look at it.

IOS 17 UserDefaults doesnt work as intented sharing data beetween app and widgetkit
 
 
Q