App needs to be Updated by developer - Xcode 13.0

when we publish the app through MDM platform, and when try to open the published app it says "App needs to be updated by the Developer" and followed the below steps but didn't help. please let me know if anyone has come across same situation and resolved the issue ??

cp -f ApplicationBuild/Application.ipa . unzip -q Application.ipa rm -rf Application.ipa codesign -s "iPhone Distribution: Company Inc" -f --preserve-metadata --generate-entitlement-der ./Payload/*.app/ zip -qr Application.ipa Payload mv Application.ipa ApplicationBuild/Application.ipa

App needs to be Updated by developer - Xcode 13.0
 
 
Q