How to validate ios app bundle without uploading to App Store

When I upload an iOS app to App Store, it validates the bundle and sends email if the bundle is incorrect.

I was wondering if there is any way to do this in the CI/CD pipeline even before attempting to upload it to App Store.

In the past, we have received many errors. To name a few-

ITMS-90685: CFBundleIdentifier Collision

ITMS-90205: Invalid Bundle

ITMS-90785: UIUserInterfaceStyle can’t be '' - It can only be 'Light', 'Dark', or 'Automatic'.

ITMS-90668: Invalid Bundle Executable

ITMS-90062: This bundle is invalid

ITMS-90165: Invalid Provisioning Profile Signature

ITMS-90478: Invalid Version

ITMS-90640: Invalid Info.plist value

ITMS-90338: Non-public API usage

ITMS-90892: Missing recommended icon

etc.

I understand that not all of them can be detected unless we upload it to App Store, but maybe some of them can be detected. I am sure other developers have felt the need of this. Is there a way to achieve this, maybe using XCode or any other tools Apple provides?

I would greatly appreciate your help.

How to validate ios app bundle without uploading to App Store
 
 
Q