-
Notifications
You must be signed in to change notification settings - Fork 41
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
Can't change 27753 port for 'iOSDeviceManager' / DeviceAgent-Runner.app #541
Comments
Override the https://github.com/calabash/run_loop/blob/develop/lib/run_loop/device_agent/client.rb#L33 |
@jmoody Are you sure?. For me, Overriding this port only changes URL for Device agent client to connect. But it is not changing the actual port in the DeviceAgent-Runner.app. |
That is correct. My mistake. There is no way to change this port number on the DeviceAgent itself. |
@jmoody Is it apple limitation ? or it a hardwired value that could in principle be changed. |
It could be changed but there is no mechanism for doing so. What is your use case? |
I want to run the tests parallel in iOS simulators and this issue is blocking us. |
@jmoody Thanks. |
@Goginenni This is not on the critical path at the moment. I have reopened this issue and put it into the backlog. |
@jmoody Ok. it is quite critical to us and I would like to dig into it & fix. Can i see iOSDeviceManager code or it is impossible to share this code ? |
+1 |
+1 This too is something we would like. |
+1 did anything ever come of this? I'd really like to be able to run on multiple simulators. |
@jmoody What can the public do to help prioritize this feature? |
Sadly, the public can do nothing until DeviceAgent.iOS open sourced. If you are Xamarin Test Cloud or Microsoft Mobile Center customers, you can request this feature from your representative. To temper your expectations, this feature is an extremely low priority for Microsoft. |
Understood and thank you for the prompt reply. |
I have been thinking about running multiple simulators concurrently. I don't think this is something we can easily support. The port issue is somewhat trivial - I can think of a solution. The real problem is managing the underlying We switched to We could also try transitioning to using FBSimulatorControl's fbsimctl to manage the simulators - I don't know if that tool also has this relaunch problem. |
Will the ability to launch multiple concurrent simulators in Xcode 9 help at all? "Simulator
|
No. This is not related to the unchangeable port issue. |
Do you see any reason why a sed/perl command to change the ports wouldn't work? Something like this https://stackoverflow.com/questions/15402770/how-to-grep-and-replace |
I will repeat: Sadly, the public can do nothing until DeviceAgent.iOS open sourced. If you are Xamarin Test Cloud or Microsoft Mobile Center customers, you can request this feature from your representative. To temper your expectations, this feature is an extremely low priority for Microsoft. The port number is compiled into the DeviceAgent.app. |
This answers my question. I wanted to be sure before investing in additional mac machines. Thank you for the reply. |
Hi,
I tried according to this post #540 but doesn't work for me.
DEVICE_AGENT_URL=http://127.0.0.1:8086 ./run_loop/2.2.0/lib/run_loop/device_agent/bin/iOSDeviceManager start_test --device-id 026B9D52-492B-4FB1-B8C6-B48B83A27E06
$ curl -X GET '-H "Content-Type: application/json"' http://127.0.0.1:8086/1.0/health
curl: (7) Failed to connect to 127.0.0.1 port 8086: Connection refused
But
$ curl -X GET '-H "Content-Type: application/json"' http://127.0.0.1:27753/1.0/health
{"status":"Calabash is ready and waiting."}
How can i change this port?
Regards,
Sathish
The text was updated successfully, but these errors were encountered: