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