Xcode SwiftUI Preview "app" wants to access data from other app

I am writing SwiftData app, using a group container.

When editing a SwiftUI file, every couple of seconds a dialog - that the app wants to access data from other apps - pops up. It is impossible to edit a view file while Canvas preview is open.

If preview is resumed the dialog has to be confirmed twice.

Each time the app is started from Xcode, the dialog has to be confirmed again.

Any idea, how to stop these boring dialogs?

Xcode SwiftUI Preview "app" wants to access data from other app
 
 
Q