Closed tardoandre closed 6 years ago
I don’t think that it is possible. You may be able to change the server port, but not the DeviceAgent one
As previously mentioned by @jmoody at this issue, its possible to change the LPServer port by setting the CalabashServerPort key in the app's Info.plist, however the DeviceAgent port cannot be changed as you said.
But setting any value into CalabashServerPort invokes a crash on the application framework.
I think the type of your key is incorrect. It is probably String
and it needs to be Number
@jmoody how exactly would I declare a Number inside Info.plist? The default pattern is to provide a key and a string only.
Through the Xcode UI, choose Number.
If you want to edit the .plist directly:
<key>LPServerPort</key>
<integer>33340</integer>
default pattern
What pattern?
@jmoody funny behavior, when you edit the source code for Number directly on Xcode p.list it fails with the following error: couldn't parse contents of _projectpath.The data couldn’t be read because it isn’t in the correct format.
Through the Xcode UI, it works. Maybe the IDE inserts an invisible character or something around it. Thanks for the help, by the way, it worked.
Hi people,
I need to change the default Calabash server port. After setting any value using the key CalabashServerPort on my application Info.plist, it crashes the app with the following logs:
Any idea? How can I properly change the default port (32765)?