- Start with a device that has been factory reset and has not been set up yet (optional but entering supervised mode will do this anyway)
- Connect the device to a Mac with Apple configurator 2 and XCode (8 or later) installed
- Put the device into supervised mode
- Go through the device set-up flow and connect it to your network
- (optional) Set the display to never lock (Settings -> Display)
- Enable Web Inspector on the device (Settings -> Safari -> Advanced -> Web Inspector)
- Clone the project code to the Mac (you will need to build it with an Apple developer account certificate).
git clone https://github.com/WPO-Foundation/iWptBrowser.git
- Open the project in XCode
- Select the attached device as the debugging target
- Click the play button to build the app, install it on the device and launch it
- This will also register the device to your developer account which is necessary for testing
- Assuming the app built correctly and launched on the device, chick the stop button to stop the app
- Create an Archive build for installing on the device (only need to do this once, the built .ipa can be used for all devices)
- Product -> Archive
- Select the archive that was just created and click the
Export
button - Select to export for
Development Deployment
- Select your Apple developer account certificate to use for the app (needs to be the same as the device is registered to)
- Select to export one app for all devices
- Click
next
to run the export process (will take a few minutes) - Select a destination folder for the installable .ipa (I usually copy it from a folder to my desktop to make it easy to drag and drop install onto the device)
- Exit XCode
- Open Apple configurator 2
- Double-click on the device and select the
Apps
view (from the column on the left) - Drag-and-drop your iWptBrowser.ipa archive build into the device apps window (and choose to overwrite the existing install)
- Disconnect the device from the Mac
- Connect the device to the test machine that will be driving the testing
- Setup instructions are available here
- Using a Raspberry Pi as a controller is highly recommended but any Mac or Linux machine should work (limited to one device per machine currently)
- Click the "Trust" button on the device if prompted to trust the test machine
- Start the agent (with the --iOS command-line option to let it know it is running testing on an iOS device)
- Submit a test to make sure everything is working as expected
Running in single-app mode is optional but it will automatically re-start iWptBrowser if it crashes, runs out of memory or even if the device reboots and is HIGHLY recommended for a test device.
- After the device has been tested and is set to trust the test computer, reconnect it to the Mac
- Launch Apple configurator 2
- Right click on the device and select Advanced -> Start Single App Mode
- Select the iWptBrowser app
The same process needs to be repeated for each device with the exception of building a new archive. If the devices are already registered to your developer account then you can also skip the step of running the app from XCode (it's just done since XCode takes care of automatically registering and provisioning the device).