This shell script re_sign an ipa using Apple Enterprise Certificate .
1 ipa file you would like to re_sign
2 Apple Enterprise Distribution Certificate double click then will found in keychain
3 Distribution mobileprovision file *.mobileprovision
4 New BundleID in accordance with the mobile provision file in [^3]
1 set execution permissions to Resign.sh or Resign_en.sh eg : chmod +x ./Resign_en.sh
2 drag 'Resign_en.sh' to command line tool
3 according to the prompt message, select the distribution certificate you would like to use. Only select content within double quotes Eg. iPhone Distribution : ****.co .,LTD.
4 drag the ipa file to command line tool
5 drag the mobileprovision file to command line tool
6 input the new BundleID
7 Done ! (if no error occurs 😂)
Including but not limited to the following
1 check codesign ,
2 check security ,
3 /usr/libexec/PlistBuddy