as an app developer, there's always a need to install the installation package on an iOS machine before the app is available on the Apple Store, so we'll need to pack in the House version of IPA, package in House is actually a process of re-signing the IPA application. In general, packing in house requires the following: Mac machine, general packaged IPA is packaged on Mac machines, a suffix named. mobileprovision profile, a certificate with suffix P12, There is also a certificate with the suffix named. cer and the IPA you want to re-sign .
How to re-sign IPA
Step 1:
Unzip Yourapp.ipa
Step 2:
RM-RF payload/yourapp.app/_codesignature
Step 3:
CP Inhouse.mobileprovision Payload/yourapp.app/embedded.mobileprovision
Step 4:
/usr/bin/codesign-f-S "IPhone distribution:yourcompanyname"--resource-rules payload/yourapp.app/ Resourcerules.plist Payload/yourapp.app
Step 5:
Zip-r Yourapp_inhouse.ipa Payload
* Inhouse.mobileprovision is the provision file you want to use to sign
* IPhone Distribution:yourcompanyname refers to the name of the certificate that corresponds to the signature. This can be found in the keychain.
Introduction to IPA re-signing steps in iOS app development