Mobilewright version
0.0.30
Operating system
macOS
Target platform
iOS
Device or simulator
real device iPhone 13promax
Minimal reproduction
Summary
On a real iPhone, npx mobilewright install --device <udid> --provisioning-profile <profile> connects to the device successfully but never completes the agent installation.
After interrupting the command and checking status, Mobilewright reports that the agent is still not installed.
This reproduces even though:
- the iPhone is online and trusted
- Xcode can sign and deploy a sample app to the same device
mobilecli devices and mobilecli apps list work successfully against the same device
This suggests an issue in the iOS real-device agent install flow of Mobilewright/mobilecli.
Environment
- Mobilewright:
0.0.30
@mobilewright/test: 0.0.30
- macOS host
- Real iPhone device
- Device UDID:
00008110-0016518621E2401E
- Device name:
Iphone 13promax
- iOS version reported by mobilecli:
26.3.1
Preconditions
- iPhone is connected, unlocked, trusted, and visible to Mobilewright
- Xcode can successfully build and run a sample app on the same iPhone
- Provisioning profile used:
/Users/admin/Library/Developer/Xcode/UserData/Provisioning Profiles/ba8a0a93-edb0-44b0-9184-4c2a6e2dafb0.mobileprovision
Reproduction
- Verify device is visible:
cd /Users/admin/Documents/itech/mobilewright-first-login
./node_modules/.bin/mobilecli devices --include-offline --platform ios
- Verify app listing works:
./node_modules/.bin/mobilecli apps list --device 00008110-0016518621E2401E
- Run install:
DEBUG='mw:*' npx mobilewright install \
--device 00008110-0016518621E2401E \
--provisioning-profile "/Users/admin/Library/Developer/Xcode/UserData/Provisioning Profiles/ba8a0a93-edb0-44b0-9184-4c2a6e2dafb0.mobileprovision"
Actual behavior
Observed Behavior
The command outputs only the connection/tunnel logs and then never completes:
2026/05/04 16:06:33.005024 INFO connect to lockdown tunnel endpoint on device
2026/05/04 16:06:33.129939 INFO Received connection request from=127.0.0.1:55333 to=127.0.0.1:60106
2026/05/04 16:06:33.129955 INFO Received connection request to device ip=fd30:654b:a194::1 port=63711
2026/05/04 16:06:33.132355 INFO Connected to remoteAddr=fd30:654b:a194::1 remotePort=63711
The process continues running and holds the tunnel port:
mobilecli-darwin-arm64 agent install --device 00008110-0016518621E2401E --provisioning-profile ...
LISTEN TCP 127.0.0.1:60106
If another iOS command is run while install is active, it warns:
failed to start tunnel
error="could not setup listener. listen tcp 127.0.0.1:60106: bind: address already in use"
After interrupting the install and checking agent status:
./node_modules/.bin/mobilecli agent status --device 00008110-0016518621E2401E
the result is:
{
"status": "fail",
"data": {
"message": "Agent is not installed on the device"
}
}
Also, no Mobilewright/mobilecli agent app appears on the iPhone.
Expected behavior
Expected Behavior
mobilewright install --device ... --provisioning-profile ... should:
- complete successfully
- install the Mobilewright agent on the real iPhone
- allow
mobilecli agent status to report installed/ok
Why this appears to be a framework issue
- Device tunnel/connect works
mobilecli devices works
mobilecli apps list works
- Xcode signing/deployment to the same iPhone works
- Provisioning profile path is valid and readable
- Only the Mobilewright iOS agent installation path fails to complete
Additional context
Additional Notes
Do not run agent status or apps list in parallel with install; they conflict on the tunnel port:
Even after waiting several minutes, install does not complete and the agent remains not installed.
Mobilewright version
0.0.30
Operating system
macOS
Target platform
iOS
Device or simulator
real device iPhone 13promax
Minimal reproduction
Summary
On a real iPhone,
npx mobilewright install --device <udid> --provisioning-profile <profile>connects to the device successfully but never completes the agent installation.After interrupting the command and checking status, Mobilewright reports that the agent is still not installed.
This reproduces even though:
mobilecli devicesandmobilecli apps listwork successfully against the same deviceThis suggests an issue in the iOS real-device agent install flow of Mobilewright/mobilecli.
Environment
0.0.30@mobilewright/test:0.0.3000008110-0016518621E2401EIphone 13promax26.3.1Preconditions
Reproduction
cd /Users/admin/Documents/itech/mobilewright-first-login ./node_modules/.bin/mobilecli devices --include-offline --platform iosActual behavior
Observed Behavior
The command outputs only the connection/tunnel logs and then never completes:
The process continues running and holds the tunnel port:
If another iOS command is run while install is active, it warns:
After interrupting the install and checking agent status:
the result is:
{ "status": "fail", "data": { "message": "Agent is not installed on the device" } }Also, no Mobilewright/mobilecli agent app appears on the iPhone.
Expected behavior
Expected Behavior
mobilewright install --device ... --provisioning-profile ...should:mobilecli agent statusto reportinstalled/okWhy this appears to be a framework issue
mobilecli devicesworksmobilecli apps listworksAdditional context
Additional Notes
Do not run
agent statusorapps listin parallel with install; they conflict on the tunnel port:Even after waiting several minutes, install does not complete and the agent remains not installed.