rvictl fails starting on Big Sur (Intel) and iOS 12.5.2)

Hi there, attempting to use Wireshark to debug a faulty app, I am struggling to use rvictl to create a virtual interface.
  • Macbook Air 2015 running Big Sur 11.2.3

  • iPhone 6 running iOS 12.5.2

  • Xcode 12.4 installed

  • Manually installed mobiledevice.pkg and mobiledevciedevelopment.pkg packages in

Code Block
Applications/Xcode-beta.app/Contents/Resources/Packages
  • issued command

Code Block
sudo launchctl load -w /Library/Apple/System/Library/LaunchDaemons/com.apple.rpmuxd.plist

which throws
Code Block
"Load failed: 37: Operation already in progress"

When issuing the command (with or without sudo):
Code Block
rvictl -s <phone-UID>

It throws:
Code Block
Starting device <phone-UID> [FAILED]

I have executed
Code Block
sudo installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/MobileDeviceDevelopment.pkg -target /

which returns:
Code Block
installer: Package name is MobileDeviceDevelopment
installer: Upgrading at base path /
installer: The upgrade was successful.


Any idea?

Any idea?

Regarding the rvictl side, this should be captured in a bug report.
Although not from the exact versions you mentioned, I was able to get rvictl to enable rvi0 on iOS 12.4.4 from Big Sur 11.2.

Code Block text
$ rvictl -s e...2
Starting device e...2 [SUCCEEDED] with interface rvi0
$ tcpdump -D
1.awdl0 [Up, Running]
2.llw0 [Up, Running]
3.utun0 [Up, Running]
4.en1 [Up, Running]
...
11.en0 [Up, Running]
12.bridge0 [Up, Running]
...
15.rvi0 [Up]
$ tcpdump -i rvi0 -w iphone_12_device.pcap
tcpdump: WARNING: rvi0: That device doesn't support promiscuous mode
(BIOCPROMISC: Operation not supported on socket)
tcpdump: listening on rvi0, link-type PKTAP (Apple DLT_PKTAP), capture size 262144 bytes
^C2455 packets captured
2455 packets received by filter
0 packets dropped by kernel
$ rvictl -x e...2
Stopping device e...2 [SUCCEEDED]


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Hello and thanks for your reply.

Could the message

Code Block
"Load failed: 37: Operation already in progress"


which appears when entering the following command
Code Block
sudo launchctl load -w /Library/Apple/System/Library/LaunchDaemons/com.apple.rpmuxd.plist


mean that something has not yet loaded correctly?

mean that something has not yet loaded correctly?

No. Consider this:

Code Block
% sudo launchctl list | grep com.apple.rpmuxd
- 0 com.apple.rpmuxd


So, the job is loaded on my Mac. Now this:

Code Block
% sudo launchctl load -w /Library/Apple/System/Library/LaunchDaemons/com.apple.rpmuxd.plist
/Library/Apple/System/Library/LaunchDaemons/com.apple.rpmuxd.plist: service already loaded
Load failed: 37: Operation already in progress


Error 37 is EALREADY which just means that the job is already loaded.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I am also facing same issue.

I’ve responded on the thread your created for this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

rvictl fails starting on Big Sur (Intel) and iOS 12.5.2)
 
 
Q