Applescript issue after update

I’m stumped why the apps I created from Script Debugger no longer work?
The base script works. If I go to show contents of package and run the script, it works fine too.
When I run the app, I get an error “This script needs access to your calendars to run”, which I have given. Is there some other permissions that need to be tweaked?

All my app’s are like this now and I need a slap in the right direction to fix. I have an M1 Mac mini running MacOS 15.1.1. Any help would be most appreciated.

I have occasionally had issues with apps created by Script Debugger, paricularly when running them from a third party tool. I have also had to debug some Script Debugger problems by running scripts in Script Editor.
I have come to the conclusion that, while Script Debugger is my preferred development tool, the only apps I want are those created by the official Apple tool.

When I finish debugging a script in Script Debugger, I save it, select and copy all the text, and paste into Script Editor, compile and save it as an app.

I tried your suggestion using Applescript, and I get the same result. I can run as a standalone script fine, but I saved as an app and I get same error. I also did some poking around in the contents section of the package. I got it to work when I opened the terminal piece of the app. I had several of these scripts saved as bundles that worked for a few years and just recently something changed and I can’t figure out.