1cb93a386Sopenharmony_ci---
2cb93a386Sopenharmony_cititle: 'Testing on iOS'
3cb93a386Sopenharmony_cilinkTitle: 'Testing on iOS'
4cb93a386Sopenharmony_ci---
5cb93a386Sopenharmony_ci
6cb93a386Sopenharmony_ciBefore setting Skia up for automated testing from the command line, please
7cb93a386Sopenharmony_cifollow the instructions to run Skia tests (_dm_, _nano-bench_) with the
8cb93a386Sopenharmony_cimainstream iOS tool chain. See the
9cb93a386Sopenharmony_ci[quick start guide for ios](/docs/user/build/).
10cb93a386Sopenharmony_ci
11cb93a386Sopenharmony_ciiOS doesn't lend itself well to compiling and running from the command line.
12cb93a386Sopenharmony_ciBelow are instructions on how to install a set of tools that make this possible.
13cb93a386Sopenharmony_ciTo see how they are used in automated testing please see the bash scripts used
14cb93a386Sopenharmony_ciby the buildbot recipes:
15cb93a386Sopenharmony_ci<https://github.com/google/skia/tree/main/platform_tools/ios/bin>.
16cb93a386Sopenharmony_ci
17cb93a386Sopenharmony_ci## Installation
18cb93a386Sopenharmony_ci
19cb93a386Sopenharmony_ciThe key tools are
20cb93a386Sopenharmony_ci
21cb93a386Sopenharmony_ci- libimobiledevice <http://www.libimobiledevice.org/>,
22cb93a386Sopenharmony_ci  <https://github.com/libimobiledevice/libimobiledevice>
23cb93a386Sopenharmony_ci
24cb93a386Sopenharmony_ci- ios-deploy <https://github.com/phonegap/ios-deploy>
25cb93a386Sopenharmony_ci
26cb93a386Sopenharmony_ciFollow these steps to install them:
27cb93a386Sopenharmony_ci
28cb93a386Sopenharmony_ci- Install Brew at <http://brew.sh/>
29cb93a386Sopenharmony_ci- Install _libimobiledevice_ (Note: All these are part of the _libimobiledevice_
30cb93a386Sopenharmony_ci  project but packaged/developed under different names. The _cask_ extension to
31cb93a386Sopenharmony_ci  _brew_ is necessary to install _osxfuse_ and _ifuse_, which allows to mount
32cb93a386Sopenharmony_ci  the application directory on an iOS device).
33cb93a386Sopenharmony_ci
34cb93a386Sopenharmony_ci```
35cb93a386Sopenharmony_cibrew install libimobiledevice
36cb93a386Sopenharmony_cibrew install ideviceinstaller
37cb93a386Sopenharmony_cibrew install caskroom/cask/brew-cask
38cb93a386Sopenharmony_cibrew install Caskroom/cask/osxfuse
39cb93a386Sopenharmony_cibrew install ifuse
40cb93a386Sopenharmony_ci```
41cb93a386Sopenharmony_ci
42cb93a386Sopenharmony_ci- Install node.js and ios-deploy
43cb93a386Sopenharmony_ci
44cb93a386Sopenharmony_ci```
45cb93a386Sopenharmony_ci$ brew update
46cb93a386Sopenharmony_ci$ brew install node
47cb93a386Sopenharmony_ci$ npm install ios-deploy
48cb93a386Sopenharmony_ci```
49