iOS: Missing aps-environment in entitlement

I have removed all plugins except one for push notifications and did rebuild. Same result. The issue must be somewhere else. I think it’s something related to build parameters where it does not copy entitlements or even uses different file for entitlements.

Log for reference:

Usually I can see in the logs which entitlement the app has (well it was like that before Xcode 14). Now there is nothing about entitlements in the logs.