Page 1 of 1

Modify and re-sign app (done)

Posted: Mon Oct 05, 2015 6:09 am
by vikkysingh
I recently modified the Info.plist file and re signed the app, thought i'd share the steps.

Create an app (.app) and view it's contents. Delete the signature folder.

1. Modify Info.plist. In my case i needed to increment a build of a beta test app, and avoid delay in beta app review. So only the CFBundleVersion needed to be incremented.

<key>CFBundleVersion</key>
<string>1.0.57</string> This should be unique per build of an approved beta test app.
<key>CFBundleShortVersionString</key>
<string>1.0.53</string> In the 1st submission to Apple, both this and CFBundleVersion are identical (default bahavior of Standalone Builder)


2. Create an entitlements file

Create a file entitlements.plist and add the following:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beta-reports-active</key>
<true/>
<key>application-identifier</key>
<string>identifier.appname</string> e.g. 23M8N99C0N.com.myPhotosapp
<key>com.apple.developer.team-identifier</key>
<string>teamId</string> usually the same as app id above 23M8N99C0N
<key>get-task-allow</key>
<false/>
<key>keychain-access-groups</key>
<array>
<string>23M8N99C0N.com.myPhotosapp</string>
</array>
</dict>

</plist>

3. Codesign
pcname:~ mac$ /usr/bin/codesign -f -s "iPhone Distribution: CertificateNameWithSpaces" --entitlements "entitlements.plist" "AppName.app"

(Assuming entitlements.plist is in the same folder where the .app is.)

Cheers!

Vikram