Skip to content

Instantly share code, notes, and snippets.

@behdaad
Created September 2, 2019 07:32
Show Gist options
  • Save behdaad/c094cc87dd69a2b864929e60dedd30fc to your computer and use it in GitHub Desktop.
Save behdaad/c094cc87dd69a2b864929e60dedd30fc to your computer and use it in GitHub Desktop.
Snippets
hexdump -C -n128 myfile.ext
security find-identity -v -p codesigning
codesign -d --entitlements :- Snapp.app
cd ~/Library/MobileDevice/Provisioning\ Profiles/
security cms -D -i xxxxxxxx_your_pp_id.mobileprovision
codesign -s "iPhone Developer: Behdad $(MY_TEAMID)" Snapp.app
(Matches longest string)
codesign -v --verbose Snapp.app
Resign:
Remove old signing:
- unzip -q old.ipa
- rm -rf Payload/*.app/_CodeSignature
Copy new provisioning profile:
- cp new_provisining_profile.mobileprovision Payload/*.app/embedded.mobileprovision
Generate entitlements using old entitlements
- cd Payload/
- codesign -d --entitlements - *.app > entitlements.plist
- cd ..
- mv Payload/entitlements.plist entitlements.plist
Force sign the app:
- /usr/bin/codesign -f -s "Your_certificate_in Keychain" '--entitlements' 'entitlements.plist' Payload/*.app
Zip it up:
- zip -qr resigned.ipa Payload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment