Source: Self-packaged script for iOS projects written in Python

Source: Internet
Author: User

Http://www.cocoachina.com/ios/20160307/15501.html

What the? Test the package again!

iOS development for several years, every day in addition to code code, change the bug, the most annoying to me is the test of the sister ran over: "Just the bug has been changed, and then hit a bag." However, I am tired of this self-imposed obligations, not to say to configure a variety of parameters, just use Xcode packaging clean code, verify the certificate let me burn, and occasionally to turn over a wall or even a mobile phone to open a hot spot to package success. Every time packing smooth, also take 7-8 minutes, every day n packs, want to finish the task early on time to think about the work. Then he made a packaged script (and then the dog was happy). OK, no more nonsense, let me introduce the script below, hoping to bring you convenience.

Address of the script: Https://github.com/hades0918/ipapy

Advantages:

    1. Automated packaging, a command solution, save a lot of packaging time

    2. Eliminate the helpless wait for certificate verification

    3. Automatically upload to fir.im distribution platform//no longer send QQ to testers, if you feel insecure, fir.im can be set password

    4. Automatically send messages to testers

    5. Helpful instructions, easy to get started

Preparatory work: (工欲善其事 its prerequisite)

    • Installing Xcode

    • To install the fir.im instructions, see: https://github.com/FIRHQ/fir-cli/blob/master/README.md

    • Install python2.7, this is the Mac system comes with, if not 2.7, you can upgrade

Parameter configuration: (goto preparation If the instruction is not installed)

Configuration information python ipa.py-c or Python ipa.py--config, which needs to be modified later, also use this command.

TargetName: The name of the project, such as: My project is bosszp.xcodeproj, so my targetName is BOSSZP

Gitpath: The git address of the project, such as: My git address is http://git.xxx.org/xxxxxx/xxxxxx.git

Certificatename: certificate name, such as: My is iphone Developer:yang YU (7xc3uzcazm)

Firtoken: Create an App token on fir.im, such as: my is 2ac8uf3j9z3ur98d7gxxxxxxxx

The following are the mail settings:

Emailfromuser: My mailbox, such as:[email protected]

Emailtouser: The test person's mailbox, such as:[email protected]

Emailpassword: The password for my mailbox

Emailhost: The mailbox of the host, you can go to the mailbox page to view, such as: my is smtp.163.com

After configuring the information, you can view the basic usage method by--help or-H

-H,--help view help information

-C,--config configuration basic information

-S,--showtags Show all versions on Git

-T TAG,--tag=tag set the version when packaged

If you don't like it, you can change the 28th line of the script to your favorite directory, such as: Target_path = "/USERS/YUYANG/CLONE/BOSSZP"

You can use this:

Python ipa.py-h

Python ipa.py--help

Python ipa.py-c

Python ipa.py--config

Python ipa.py-s

Python ipa.py--showtags

Python ipa.py-t v3.0//packaging when used this way, the following v3.0 parameters can be used in Python ipa.py-s get

Python Ipa.py-tag v3.0//packaging when used this way, the following v3.0 parameters can be used in Python ipa.py-s get

Python ipa.py (tag does not write, default is master)

Finally, the disadvantage of the script, this script is only suitable. Xcodeproj Engineering, Workspace is not supported, the follow-up will slowly improve. If this script can bring you convenience, give a star bar, give me to do it better to some power.

Demo Download:

Ipapy-master.zip

Source: Self-packaged script for iOS projects written in Python

Related Article

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.