-
XOS 10.11 or higher
-
Xcode 7 or higher
-
xcpretty - create test result in xml format
gem install xcpretty -
slather - create test coverage in xml format
gem install slather
-
Clone the project
git clone git@github.com:butomo1989/XCSTutorialProject1.git -
Navigate to project
cd XCSSampleProject
-
open the project
open XCSTutorialProject1.xcodeproj -
select scheme, target device and then click 'run test' icon
-
run command
xcodebuild test -project <xcode-project> -scheme <scheme> -destination <target-device> | xcpretty -s -r <report-type> --output <report-file> && slatherexample:
xcodebuild test -project XCSTutorialProject1.xcodeproj -scheme XCSTutorialProject1 -destination 'name=iPhone 7,OS=10.2' | xcpretty -s -r junit --output report-junit.xml && slather
-
Open the project in Xcode
open XCSTutorialProject1.xcodeproj -
Rename Bundle Identifier in Identity section
-
Select team in Signing section. (If there is no Apple ID stored there, log in with your Apple ID)
-
Select Product -> Build For -> Running
-
Go to build directory
-
Create a new directory named "Payload"
mkdir Payload -
Move app folder into "Payload"
cp -r sample.app Payload -
Zip the "Payload" into .ipa
zip -r final_app.ipa Payload/
Source: zip tutorial


