title: iOS resign IPA from appstore with developer profile
body: <p>I am trying to resign iOS app which I downloaded from appstore with my own certificate how to do it I am stuck in that . I am using OS X Yosemite  This is what I did </p>
  
  <pre><code>#  ResignApp.sh
  #  
  #
  #  Created by Naveen P on 3/11/15.
  #
  IPA="/RnD/Dropbox\ 3.7.ipa "
  PROVISION="/RnD/iOSTeam_Provisioning_Profile_.mobileprovision"
  CERTIFICATE="iPhone Developer: ABCD " # must be in keychain
  # unzip the ipa
  unzip -q "$IPA"
  # remove the signature
  rm -rf Payload/*.app/_CodeSignature Payload/*.app/CodeResources
  # replace the provision
  cp "$PROVISION" Payload/*.app/embedded.mobileprovision
  # sign with the new certificate (--resource-rules has been deprecated OS X Yosemite (10.10), it can safely be removed)
  /usr/bin/codesign -f -s "$CERTIFICATE" --resource-rules Payload/*.app/ResourceRules.plist Payload/*.app
  # zip it back up
  zip -qr resigned.ipa Payload
  </code></pre>
  
  <p>but it terminates without resigning showing this </p>
  
  <pre><code>Warning: --resource-rules has been deprecated in Mac OS X &gt;= 10.10!
  Payload/*.app/ResourceRules.plist: cannot read resources
  </code></pre>