There was a problem with the app when running app from shortcuts

I wanna add an intents app extension on iOS 15, I'm following the link https://toolboxpro.app/blog/adding-shortcuts-to-an-app-1.

It works fine when running the extension target on device, but here comes the error "Could not run Make Uppercase,There was a problem with the app" when I running the main target.

There is no exception or breakpoint in Xcode so I don't know what's the problem. Any help will be appreciate, thanks.

There was a problem with the app when running app from shortcuts
 
 
Q