Sometimes we find ourself doing same activity over and over then it makes perfect sense to create programs to automate such activity. This repository contains iOS app development utility programs to automate creation of ipa files.
###makeipa.py
A python script to create resigned ipa file from given ipa/app/xcarchive file.
#####Prerequisites:
- MacBook installed with XCode and iOS SDK
- Python 2.7 or later
- Apple Distribution Certificate installed on the MacBook (created on developer.apple.com)
- iOS App Provisioning Profile (created on developer.apple.com)
- entitlements.plist (its template is given bvelow)
#####Template of entitlements.plist File
<?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>application-identifier</key>
<string>Y88DLQ42G7.com.company.appname</string>
<key>keychain-access-groups</key>
<array>
<string>Y88DLQ42G7.com.company.appname</string>
</array>
</dict>
</plist>
#####Preparation Steps:
- Copy makeipa.py and provision profile files in a folder
- Open makeipa.py for edit and update following lines: a. _IPHONE_DISTRIBUTION_CERTIFICATE_NAME = "iPhone Distribution: Santosh Sharma (Y88DLQ42G7)" for your distribution certificate name. b. _EMBEDDED_MOBILEPROFILE_FILE_NAME = "embedded.mobileprovision" for provision profile file name downloaded from developer.apple.com.
- Edit entitlements.plist file for app bundle id used in two places.
#####Usage:
python makeipa.py <full path of xcarchive or app or ipa file>