In project development, we often need to package the project files into an. ipa file, which is provided for jailbreak iphone installation.
Here's one way:
1, first should give the project to install the configuration file (here no longer allocations), in the state of iOS device, run successfully.
2, choose Product->archive, such as
3, click the Distribute button, pop up a new window, select Export as Xcode Archive, as follows:
4. If the popup is saved, click Save.
5. Select the generated file, xxx 13-5-10 pm 4.00.xcarchive, right click, select Show Package Contents
6, choose Products->applications, back to see your. app file. The next step is to put the. app file on the itunes app and let itunes run the. app file. Right-click on the generated file and select the show in Finder to see the corresponding. ipa file.
7. Batch Modify Channel shell
Origin from Xiao Feng elder brother
#!/bin/bash
# # Author:xiaofeng
# # Usage:channelipas.sh [Orgineal IPA]
##
# # Options:
#-H,--help Display this message
Usage () {
["$*"] && echo "$: $*"
Sed-n '/^##/,/^$/s/^## \{0,1\}//p ' "$"
Exit 2
} 2>/dev/null
Main () {
While [$#-GT 0]; Do
Case $ in
(-N) Dry_run=1;;
(-h|--help) Usage 2>&1;;
(-) Shift; break;;
(-*) Usage "$1:unknown option";;
(*) break;
Esac
Done
if [[$#-eq 0]]; Then
Usage 2>&1
Fi
: Do stuff.
Orginal_ipa=$1
Orginal_ipa_name= ' basename $orginal _ipa. IPA '
Thirdpart_channels= ' Tongbutui pp kuaiyong haima aisi xy wuyou youmi kuaizhuang itools '
plist_key= "channel_id"
Workspace=./tmp
mkdir $workspace
Unzip $orginal _ipa-d $workspace
CD $workspace
For channelid in $thirdpart _channels; Do
echo "# Start package IPA for channel \" $channelid \ ""
Target_channel_ipa= "$orginal _ipa_name-${channelid}.ipa"
/usr/libexec/plistbuddy-c "Set $plist _key $channelid"./payload/**/info.plist
Zip-r. /$target _channel_ipa./payload/
Done
Cd..
RM-RF $workspace
}
Main $*
IOS app beat jailbreak package, channel batch modify shell