2

I have an ipa file of my application. What I am looking to do is to replace a folder inside the .app

So What I did till now :

1.Renamed the .ipa to .zip

2.Extracted the .zip file which gave me Payload/Appname.app folder structure.

3.Inside AppName.app -> Show Package Name -> MyTargetFolder

4.Replaced MyTargetFolder with required updates

5.Using terminal - used a command codesign -f -s "iPhone Developer: keychain certificate name" Payload/*.app
Above command gave output on terminal as : replacing existing signature

  1. Re-zipped the Payload folder and then changed its extension to .ipa

  2. Using Xcode, Tried installing the app on Device

However it is showing an error as : App installation failed There was an internal API error.

Is there something missing in what I am doing?

iCodes
  • 1,382
  • 3
  • 21
  • 47
  • Is your signing certificate listed in the embedded mobile provisioning profile? If not, you need to replace the profile with one listing your certificate and probably modify the entitlements. – Mats Oct 09 '18 at 11:18
  • ok... I did replace the existing embedded mobile provisioning profile with the one containing my certificate and fired the codesign command. Now when I try to install the app, it shows a message : `App installation failed > The application could not be verified.` – iCodes Oct 09 '18 at 13:10
  • I might have missed this, but have you updated the entitlements for the new profile? I usually need to change the debug-entitlement and change the team identifier. https://stackoverflow.com/questions/36888535/ – Mats Oct 10 '18 at 10:34

0 Answers0