Creating a new distribution profile helped me. Here are the steps:
1: Xcode - File - Settings - Accounts - Apple IDs - select your apple ID - Select your team - Click on manage certificates: If you do not have Apple distribution certificate then click on "+" button and create Apple distribution certificate.
2: Go to https://developer.apple.com/account/resources/profiles/list - Create profile - Select App Store under Distribution tab - click continue - Select your app id - click continue - Select certificate you just created and click continue - Download profile
3: Double click on profile and it will be installed
4: Archive new build
5: While distributing app select App store connect - Export - Manually manage signing - select provisioning profile for project_name.app - export build to desktop
6: Install Transporter app by apple: https://apps.apple.com/pk/app/transporter/id1450874784?mt=12
7: Loging with your account - Select your team
8: Select/Drop your .ipa file you just created.
9: Click on distribute.
Congratulations!