ideviceinstaller icon indicating copy to clipboard operation
ideviceinstaller copied to clipboard

Can you extend ideviceinstaller to allow it to install a `Test` iOS App (XCTest) to a real device in linux?

Open aaronmagi opened this issue 5 years ago • 1 comments

Hi,

I have been researching this for the past few weeks and working to try to see if it is possible to setup https://github.com/facebook/WebDriverAgent and in particular XCTest's to be able to be deployed and ran in "test" mode from linux.

At this point I can use xcodebuild build-for-testing or test which will build the WDA App (XCTest unit tests) on MacOSX and then deploy it onto the phone and run it as test.

What I want to know is if there is a way to extend ideviceinstaller when doing -i to add the ability to instead of just install the archive, to be able to install and run it as a test.

I have also looked at ios-deploy (ported versions to linux as well) but these do not support pushing the test build to the phone either.

Main Question

  • How can I run a iOS App which has been built on MacOSX by using the Test build containing XCTest unit tests from Linux to a iOS device?

I have seen commercial products which provide this so there must be a way to do this but I am currently stuck trying to determine how to do this.

aaronmagi avatar Feb 23 '19 03:02 aaronmagi

There is no open source code to run XCTest on Linux at this time. That portion of the lockdown protocol has been reverse engineered by multiple 3rd parties who are providing that service as you have noted. The most detailed information so far can be seen in Daniel Paulus' repos. See https://github.com/danielpaulus/ ( He is one of the people who has done that work previously. He has released projects that are helpful for doing the necessary analysis of the lockdown protocol )

This work will likely be done within the next 6 months or so as part of the new DeviceFarmer project ( previously OpenSTF )

nanoscopic avatar Jul 30 '20 00:07 nanoscopic