How to check for ITMS-90284: Invalid Code Signing Errors befor uploading apps to the App Store?

Again we have the massive problem, that one of our Games (a Unreal4 app, not made with xcode and as 3rd party developer) always gets this error when we try to upload it: "ITMS-90284: Invalid Code Signing - The executable 'appname.pkg/Payload/appname.app/Contents/MacOS/appname' must be signed with the certificate that is contained in the provisioning profile." - Yes, we had the problems in the past, but these could all be solved. Now it's different. So, after days of research we can not found how to solve it, even after renewing certs etc etc as we did in the past ...

Is there any way to check the .pkg file (before sending it many hours to the appstore) to get a valuable message if code signing is now correct?

To check the embedded file: security cms -D -i nameofapp.app/Contents/embedded.provisionprofile

helps so see the entries, but they are ok.

Thanks for help and ideas.

Did you find anything?

How to check for ITMS-90284: Invalid Code Signing Errors befor uploading apps to the App Store?
 
 
Q