blob: f8a3abe9cee7df7bd3af897e7111c474c01ec98b [file] [log] [blame] [view]
Joe Gregorio02f72022021-03-27 10:12:45 -04001---
Joe Gregorioe296c562021-04-05 11:39:40 -04002title: 'Testing on iOS'
3linkTitle: 'Testing on iOS'
Joe Gregorio02f72022021-03-27 10:12:45 -04004---
5
6Before setting Skia up for automated testing from the command line, please
Joe Gregorioe296c562021-04-05 11:39:40 -04007follow the instructions to run Skia tests (_dm_, _nano-bench_) with the
8mainstream iOS tool chain. See the
9[quick start guide for ios](/docs/user/build/).
Joe Gregorio02f72022021-03-27 10:12:45 -040010
11iOS doesn't lend itself well to compiling and running from the command line.
12Below are instructions on how to install a set of tools that make this possible.
Joe Gregorioe296c562021-04-05 11:39:40 -040013To see how they are used in automated testing please see the bash scripts used
14by the buildbot recipes:
Eric Boren04fe2672021-09-27 10:15:39 -040015<https://github.com/google/skia/tree/main/platform_tools/ios/bin>.
Joe Gregorio02f72022021-03-27 10:12:45 -040016
Joe Gregorioe296c562021-04-05 11:39:40 -040017## Installation
18
Joe Gregorio02f72022021-03-27 10:12:45 -040019The key tools are
20
Joe Gregorioe296c562021-04-05 11:39:40 -040021- libimobiledevice <http://www.libimobiledevice.org/>,
22 <https://github.com/libimobiledevice/libimobiledevice>
Joe Gregorio02f72022021-03-27 10:12:45 -040023
Joe Gregorioe296c562021-04-05 11:39:40 -040024- ios-deploy <https://github.com/phonegap/ios-deploy>
Joe Gregorio02f72022021-03-27 10:12:45 -040025
26Follow these steps to install them:
27
Joe Gregorioe296c562021-04-05 11:39:40 -040028- Install Brew at <http://brew.sh/>
29- Install _libimobiledevice_ (Note: All these are part of the _libimobiledevice_
30 project but packaged/developed under different names. The _cask_ extension to
31 _brew_ is necessary to install _osxfuse_ and _ifuse_, which allows to mount
32 the application directory on an iOS device).
Joe Gregorio02f72022021-03-27 10:12:45 -040033
34```
35brew install libimobiledevice
36brew install ideviceinstaller
37brew install caskroom/cask/brew-cask
38brew install Caskroom/cask/osxfuse
39brew install ifuse
40```
41
Joe Gregorioe296c562021-04-05 11:39:40 -040042- Install node.js and ios-deploy
Joe Gregorio02f72022021-03-27 10:12:45 -040043
44```
45$ brew update
46$ brew install node
47$ npm install ios-deploy
48```