IOS is packaged with the command line

Source: Internet
Author: User

compiling packages from the command line

The first step, open the terminal, enter:

CD drag the project file here (Note: There is a space behind the CD and then drag the project file in) enter

The second step, clean works (default release version), is entered in the terminal:

Xcodebuild Clean  Enter

The third step, compile (workspace), in the terminal input:

Xcodebuild-workspace project name. Xcworkspace-Scheme project name return (this may take about two minutes, because compiling takes time)

Fourth step, open finder, press common + SHIFT + G, enter ~/library/developer/xcode/deriveddata, go. Then find Release-iphoneos this file (/users/mac name/library/developer/xcode/deriveddata/project name-dqvfylrrviudhfahtvjhlmacijzq/ Build/products/release-iphoneos)

The fifth step is to create a new file on the desktop named: Test

Sixth step, enter in the terminal:

-SDK Iphoneos packageapplication–vDrag the release-iphoneos this file to the back of the –V (note: There is a space after-V) –o Drag the test file behind-O (note: There are spaces after-O)/ Project name. IPA

(Example: Xcrun-sdk iphoneos packageapplication-v/users/mac name/library/developer/xcode/deriveddata/ Project name-dqvfylrrviudhfahtvjhlmacijzq/build/products/release-iphoneos-o/users/mac name/desktop/test/project name. IPA)

Enter, open the test file on the desktop, you can see the package has been hit.

Test

In Terminal input:

' Platform=ios simulator,name=iphone 6,os=9.2 ' test

Note: If you use a third-party framework, you need to configure the header Search paths and Pods_root synchronously

Test and store test results, enter:

' Platform=ios simulator,name=iphone 6,os=9.2 ' ' /users/admin/desktop/output ' test

IOS is packaged with the command line

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.