"Access to list denied" message in the run console

What I want: I'm learning developing by building a document-based todos app and just want my code to run.

What I get:

My app went stuck every time I open a document

So I create a new project and moved all of my code there

Nothing changes

I think that's because I added Touch Bar support so I clear Touch Bar code off

Still nothing changes, but in the LLDB console there's a message:

2022-06-06 09:17:14.098990+0800 Todos[5747:307926] [default] Failed to get state for list identifier com.apple.LSSharedFileList.ApplicationRecentDocuments Error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (Access to list denied) UserInfo={NSDebugDescription=Access to list denied}

And I think there's sth to do with App Sandbox, and I added some File Access configuration.

Nothing changes

Then I realized I forgot to add a development team in the new project

Nothing

ALSO1: when I changed the Signing Certificate to Development The message in the LLDB console disappeared.

I couldn't find any reference on it.

ANY HELP IS GREATLY APPRECIATED!!!!!!

You are not alone. I am getting the same message running Apple's own sample code:

2022-06-15 10:19:14.882785-0400 macOSVirtualMachineSampleApp-Swift[4265:108949] [default] Failed to get state for list identifier com.apple.LSSharedFileList.ApplicationRecentDocuments Error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (Access to list denied) UserInfo={NSDebugDescription=Access to list denied}

Though this is not a fatal error as the Virtual machine successfully starts, I would like to understand what pram in the project config is causing it.

Ok I find out why

Strange openpanel issue

if anyone has any idea why, please post.

I’ll not close this thread.

"Access to list denied" message in the run console
 
 
Q