IOS app beat jailbreak package, channel batch modify shell

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.