daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Oct 12th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. APPNAME="app"
  2. PROVISIONINGPROFILE="embedded.mobileprovision"
  3. CERTIFICATENAME="iPhone Distribution"
  4. BUNDLEID="com.company.app"
  5. RESOURCERULES="ResourceRules.plist"
  6. ENTITLEMENTS="Entitlements.plist"
  7.  
  8. #SCRIPT BELOW
  9. rm -rf ./Payload
  10. mkdir ./Payload
  11. cp -r "$APPNAME.app" ./Payload/
  12. rm -rf "./Payload/$APPNAME.app/_CodeSignature"
  13. rm -rf "./Payload/$APPNAME.app/CodeResources"
  14.  
  15. cp "$PROVISIONINGPROFILE" "./Payload/$APPNAME.app/embedded.mobileprovision"
  16.  
  17. /usr/bin/codesign -f -s "$CERTIFICATENAME" --resource-rules="$RESOURCERULES" --entitlements "$ENTITLEMENTS" "Payload/$APPNAME.app"
  18.  
  19. zip -qr "$APPNAME.ipa" ./Payload
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top