Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios list command used in framework is not working #877

Open
mohakbarokar opened this issue Nov 13, 2024 · 4 comments
Open

ios list command used in framework is not working #877

mohakbarokar opened this issue Nov 13, 2024 · 4 comments

Comments

@mohakbarokar
Copy link

Getting exception as following:

Exception in thread "main" java.lang.IllegalStateException: Not a JSON Object: null
at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:165)
at com.znsio.teswiz.runner.LocalDevicesSetup.getListOfIOSDevices(LocalDevicesSetup.java:96)
at com.znsio.teswiz.runner.LocalDevicesSetup.getConnectedIOSDevices(LocalDevicesSetup.java:88)
at com.znsio.teswiz.runner.LocalDevicesSetup.setupLocalIOSExecution(LocalDevicesSetup.java:109)
at com.znsio.teswiz.runner.DeviceSetup.setupIOSExecution(DeviceSetup.java:395)
at com.znsio.teswiz.runner.Setup.setupExecutionEnvironment(Setup.java:255)
at com.znsio.teswiz.runner.Setup.getExecutionArguments(Setup.java:172)
at com.znsio.teswiz.runner.Runner.(Runner.java:54)
at com.znsio.teswiz.runner.Runner.main(Runner.java:204)

while debugging i found that FW is hitting "ios list" command which is not getting recognised in my machine. also ios executable binary is not available under "/opt/homebrew/bin/ios"

@anandbagmar
Copy link
Member

anandbagmar commented Nov 13, 2024

@mohakbarokar Share your config, capabilities file and also the command you are running.

Also, Note that I am able to run the test with the latest teswiz. Which version of teswiz are you using?

@mohakbarokar
Copy link
Author

@anandbagmar I am trying to run existing tests tagged for iOS.

With Command: CONFIG=./configs/helloworld/helloworld_local_ios_config.properties TAG="@helloworld" PLATFORM=iOS ./gradlew run

The issue I observed is in /opt/homebrew/bin folder ios package is not getting installed. I also searched for this binary over internet but could't find it.

@anandbagmar
Copy link
Member

Try npm install -g go-ios

@mohakbarokar
Copy link
Author

Thanks @anandbagmar its working now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants