APP cannot run on Mac OS 13

Mac OS升級到13.0後, 原本的程式無法執行, 我在debug中看到如下的訊息:

2022-11-16 16:54:05.954859+0800 MediaProtection Player for Mac OS[2540:56030] Suppressing invocation of -[NSAlert runModal]. -[NSAlert runModal] cannot run inside a transaction begin/commit pair, or inside a transaction commit. Consider switching to an asynchronous equivalent.

我的程式在啟動後會做一些檢查, 如果有錯誤, 我會使用NSAlert.runModal()的方式顯示錯誤訊息, 使用者按下確定後, 程式會離開, 在Mac OS 12以前一直都沒有問題, 但升級到13以後, 程式變成無法執行, 在XCode裡執行, 出現了如上的訊息, 請問這是因為Mac OS 13以後有做了什麼改變造成的嗎? 我有很多程式都有做這些動作, 我並沒有啟用transaction, 為何會出現如上的訊息?

APP cannot run on Mac OS 13
 
 
Q