Modify and re-sign app (done)

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
vikkysingh
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 16
Joined: Fri Dec 31, 2010 8:13 am

Modify and re-sign app (done)

Post by vikkysingh » Mon Oct 05, 2015 6:09 am

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

Post Reply

Return to “iOS Deployment”