I am doing it through command line .The code is from third party developer.Previously it is working.Now it says Installation failed.
I use following code to resign
Unzip the .ipa file unzip app.ipa
Delete the current code signature file rm -rf Payload/MyApp.app/_CodeSignature/
Add in the new provisioning profile cp ~/Downloads/AdHoc.mobileprovision Payload/MyApp.app/embedded.mobileprovision
resign the code codesign -f -s "iPhone Distribution: Company Certificate" --resource-rules Payload/MyApp.app/ResourceRules.plist Payload/MyApp.app
rearchive the app into an .ipa file zip -qr app-resigned.ipa Payload/
You also need to resign Framework, Dylibs, Appex,... files too.
But for best way to find problem of install, open XCode->Device and select your iphone to view log message when install failed.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.