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

后端 未结 6 1537
梦如初夏
梦如初夏 2021-01-05 00:28

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

相关标签:
6条回答
  • 2021-01-05 00:34

    You need to install the Command Line Tools for Xcode, available here:
    https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-#
    That includes the rvictl program.

    0 讨论(0)
  • 2021-01-05 00:36

    Mavericks and beyond: You need to install XCode from the App Store, and then you need to launch XCode once, and accept installation of additional tools. Restart your terminal. Good to go.

    0 讨论(0)
  • 2021-01-05 00:41

    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.

    0 讨论(0)
  • 2021-01-05 00:47

    It seems like default location and installed location of rvictl on Catalina are different. rvictl should be installed by Xcode. Look for it at path: /Library/Apple/usr/bin/rvictl. The default shell has /Library/Apple/usr/bin/ in its path, either customise it or provide full qualified path i.e

    /Library/Apple/usr/bin/rvictl -s 00008020-XXXXXXXXXXXXXXXX
    

    Source: https://forums.developer.apple.com/message/392193#392193

    0 讨论(0)
  • 2021-01-05 00:49

    When you say: the command line tools for 10.10 apparently do not include the rvictl program - I get the error message: command not found

    You need to see the comment above: Mavericks and beyond: You need to install XCode from the App Store, and then you need to launch XCode once, and accept installation of additional tools. Restart your terminal.

    It will then appear.

    0 讨论(0)
  • 2021-01-05 00:53

    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.

    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题