brew doctor to diagnose the problem. Usually, permission denied errors are caused due to incorrect brew installation. Some brew folders might have been created with incorrect user or permissions. It's best to find out where the permissions are not correct and fix them. You can also try:
sudo chown -R $(whoami) $(brew --prefix)/Caskroom/* sudo chown -R $(whoami) $(brew --prefix)/Cellar/* sudo chown -R $(whoami) $(brew --prefix)/Frameworks/* sudo chown -R $(whoami) $(brew --prefix)/Homebrew/*
The brew documentation goes into detail highlighting other potential problems you might encounter.
If you are getting an error saying "npm command not found", then you might not have Node and npm correctly installed. Install node with:
brew install node
Open Appium's WebDriverAgent project with
sh -c "$(curl -fsSL https://raw.githubusercontent.com/moquality/devcenter/master/wda.sh)"
Then refer to the Appium documentation on setting up WebDriverAgent manually here. You might have to do this only once.
You haven't set up your Xcode properly. Most probably you need to configure your developer account with Xcode. Go to Xcode > Preferences > Account and sign in with your Apple developer's account here.
You usually get this error with the usbmuxd library is not on the latest version. It should be at
libusbmuxd >= 1.1.0. We suggest that you reinstall the library using:
brew uninstall --ignore-dependencies usbmuxd brew install --HEAD usbmuxd brew unlink usbmuxd && brew link usbmuxd
ideviceinstaller libraries depend on
usbmuxd, so you might have to reinstall them as well.
You can check if
ideviceinstaller -l works. If it works, you have fixed the problem. Otherwise, reinstall the other libraries with:
brew uninstall ideviceinstaller brew uninstall libimobiledevice brew install --HEAD libimobiledevice brew link --overwrite libimobiledevice brew install --HEAD ideviceinstaller brew link --overwrite ideviceinstaller sudo chmod -R 777 /var/db/lockdown/
ideviceinstaller -l should work now.
If you would like us to help you through an issue you are having, email us at [email protected].
Updated 6 days ago