title: Editing contents of ipa file
body: <p>I have an ipa file of my application.
  What I am looking to do is to replace a folder inside the .app </p>
  
  <p>So What I did till now : </p>
  
  <p>1.Renamed the .ipa to .zip</p>
  
  <p>2.Extracted the .zip file which gave me Payload/Appname.app folder structure.</p>
  
  <p>3.Inside AppName.app -> Show Package Name -> MyTargetFolder</p>
  
  <p>4.Replaced MyTargetFolder with required updates</p>
  
  <p>5.Using terminal - used a command <code>codesign -f -s "iPhone Developer: keychain certificate name"  Payload/*.app</code><br>
  Above command gave output on terminal as : 
  <code>replacing existing signature</code></p>
  
  <ol start="6">
  <li><p>Re-zipped the Payload folder and then changed its extension to .ipa</p></li>
  <li><p>Using Xcode, Tried installing the app on Device</p></li>
  </ol>
  
  <p>However it is showing an error as : <code>App installation failed  There was an internal API error.</code></p>
  
  <p>Is there something missing in what I am doing?</p>