I have spend a lot of time trying to get WPT Private Instance working with the iOS (iPhone 14) locally.
Here is what I have so far as follows:
- I have Server working locally and I am able to get the “http://localhost:4000/install/” page loaded with no errors except the agent not connected where I am trying to get the iOS device connected (I will post screenshots below)
- I have the agent from HERE working on my local as well (So Server and Agent are working because when I started the agent to getWork from Server without connecting the iOS device works)
- I have followed the instructions listed HERE for configuring the iOS device. I have iWPTBrowser built successfully with Xcode and installed on the iOS device per instructions.
- Then when I execute the command son the Agent to initiate the connection to the iOS device, I get following error:
Run Command on agent ( Server run command executed fine: php -S localhost:4000)" python3 wptagent.py --server “http://localhost:4000/work/” --location “Test” --iOS command-line"
Error: `CRITICAL:root:Running agent, hit Ctrl+C to exit
ERROR:root:Error initializing usbmux
Traceback (most recent call last):
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 222, in init
self.listener.listen()
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 191, in listen
ret = self._exchange(self.proto.TYPE_LISTEN)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 185, in _exchange
recvtag, data = self._getreply()
^^^^^^^^^^^^^^^^
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 164, in _getreply
resp, tag, data = self.proto.getpacket()
^^^^^^^^^^^^^^^^^^^^^^
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 111, in getpacket
raise MuxVersionError(“Version mismatch: expected %d, got %d”%(self.VERSION,version))
usbmuxwrapper.MuxVersionError: Version mismatch: expected 0, got 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Users/ekremmujic/webpagetest/wptagent/internal/ios_device.py”, line 66, in startup
self.mux = USBMux()
^^^^^^^^
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 227, in init
self.listener.listen()
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 191, in listen
ret = self._exchange(self.proto.TYPE_LISTEN)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 184, in _exchange
self.proto.sendpacket(req, mytag, payload)
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 140, in sendpacket
BinaryProtocol.sendpacket(self, self.TYPE_PLIST, tag, plistlib.writePlistToBytes(payload))
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module ‘plistlib’ has no attribute ‘writePlistToBytes’
ERROR:root:Error connecting to device
Traceback (most recent call last):
File “/Users/ekremmujic/webpagetest/wptagent/internal/ios_device.py”, line 215, in connect
self.mux.process(0.1)
^^^^^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘process’
ERROR:root:Error initializing usbmux
Traceback (most recent call last):
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 222, in init
self.listener.listen()
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 191, in listen
ret = self._exchange(self.proto.TYPE_LISTEN)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 185, in _exchange
recvtag, data = self._getreply()
^^^^^^^^^^^^^^^^
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 164, in _getreply
resp, tag, data = self.proto.getpacket()
^^^^^^^^^^^^^^^^^^^^^^
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 111, in getpacket
raise MuxVersionError(“Version mismatch: expected %d, got %d”%(self.VERSION,version))
usbmuxwrapper.MuxVersionError: Version mismatch: expected 0, got 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Users/ekremmujic/webpagetest/wptagent/internal/ios_device.py”, line 66, in startup
self.mux = USBMux()
^^^^^^^^
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 227, in init
self.listener.listen()
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 191, in listen
ret = self._exchange(self.proto.TYPE_LISTEN)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 184, in _exchange
self.proto.sendpacket(req, mytag, payload)
File “/Users/ekremmujic/webpagetest/wptagent/venv/lib/python3.12/site-packages/usbmuxwrapper/init.py”, line 140, in sendpacket
BinaryProtocol.sendpacket(self, self.TYPE_PLIST, tag, plistlib.writePlistToBytes(payload))
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module ‘plistlib’ has no attribute ‘writePlistToBytes’
ERROR:root:Error connecting to device
Traceback (most recent call last):
File “/Users/ekremmujic/webpagetest/wptagent/internal/ios_device.py”, line 215, in connect
self.mux.process(0.1)
^^^^^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘process’
^C
pfctl: Use of -f option, could result in flushing of rules
present in the main ruleset added by the system at startup.
See /etc/pf.conf for further details.
`
Screenshots:
Any help about this is greatly appreciated!