Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-bash : rvictl: command not found, Mac book pro OS X 10.7.5 & Xcode 4.6

I want to debug some network bug with my application ,I found a way to create rvi to trace, But I even can't finish step 1 :

rvictl -s -bash : rvictl: command not found

what should I do ? I follow the site: https://developer.apple.com/library/mac/qa/qa1176/_index.html

help! thanks

like image 621
user3271967 Avatar asked Feb 04 '14 17:02

user3271967


2 Answers

I'm using macOS Catalina and Xcode 11, Could able to find rvictl file in /Library/Apple/usr/bin. but still got the same error

-bash : rvictl: command not found

Tried all provided solution nothing worked for me. Adding sudo saved me,

sudo rvictl -s [DEVICE UDID]

[or]

sudo /Library/Apple/usr/bin/rvictl -s [DEVICE UDID]

This may help some one.

like image 177
Gokul G Avatar answered Oct 26 '22 22:10

Gokul G


I found the solution here.
In summary, the link above explains that the issue may stem from installing Xcode without installing the additional components.
Check rvictl is installed by looking for the /usr/bin/rvictl folder. If it does not exist, then rvictl is not installed. To install the packages, open your application folder through finder, right click on the Xcode app, and follow the path below to find the items which need to be installed manually:

  • Xcode.app/Contents/Resources/Packages/MobileDevice.pkg
  • Xcode.app/Contents/Resources/Packages/MobileDeviceDevelopment.pkg

Restart your terminal and.... Voila !! it should work now.

CATALINA UPDATE.

Based @KarthicRaghupathi's comments. the rvictl location was changed in Catalina. The rvictl file is now located at /Library/Apple/usr/bin. The rest of the process stays the same as above.

like image 34
Lone Ronin Avatar answered Oct 26 '22 22:10

Lone Ronin