I got an ipa and I re-signed it with expired provisioning profile (Enterprise) and with a valid certificate(.p12). using steps mentioned in here!
when I am extracting ipa (getting .App file) -> doing show package Contents (on .App) -> checking content of embedded.mobileprovision. it show same expired provisioning profile that i used to Re-sign the ipa.
Problem : I am successfully able to install it to ipad and able to run the app. Ideally App should not work with Expired provisioning profile.
Question : If we Re-signing the app through Command-line with Expired profile Will it work.?
My Question was "If we Re-signing the app through Command-line with Expired profile Will it work.?"
Answer is no.
It can work in the device only in one case. If your device already have a valid provisioning profile for the same app.
So its better to remove valid provisioning profile from your device. connect device to your computer "xcode-> windows-> Devices-> select your device(at left hand side)-> click on setting icon located on bottom left-> click on show installed provisioning profiles then select profile and delete it -> done" then test. App will not work if it is created with Expired provisioning profile.