Fixes Swift example on device.