最新消息:20210917 已从crifan.com换到crifan.org

【已解决】Mac中安装facebook-wda依赖的一些库

Mac crifan 530浏览 0评论
折腾:
【未解决】Mac中安装和初始化facebook-wda环境
期间,参考:
官网
openatx/facebook-wda: Facebook WebDriverAgent Python Client Library (not official) (github.com)
和自己教程:
搭建环境 · iOS自动化测试利器:facebook-wda (crifan.com)
去安装库:
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
去试试
还是尽量用自己Mac去做demo
因为可以完整初始化环境
对比:公司Mac是环境配好的。无需再初始化。重新初始化可能会影响现有环境的。
先去:
【记录】Mac中升级brew update和brew upgrade
继续:
 ✘ crifan@licrifandeMacBook-Pro  ~  brew uninstall --ignore-dependencies libimobiledevice
Uninstalling /usr/local/Cellar/libimobiledevice/HEAD-4727a86_3... (67 files, 1MB)
继续:
 crifan@licrifandeMacBook-Pro  ~  brew uninstall --ignore-dependencies usbmuxd
Uninstalling /usr/local/Cellar/libusbmuxd/HEAD-9efb174_1... (13 files, 141.4KB)
继续
遇到:
【已解决】Mac的macOS Catalina 10.15.7去升级XCode
重新试试
 brew uninstall --ignore-dependencies usbmuxd
Error: No available formula or cask with the name "usbmuxd".
重新安装?
brew install --HEAD usbmuxd
结果:
【已解决】Mac提示:Error Xcode alone is not sufficient on Catalina
最后安装完毕了:
✘ crifan@licrifandeMacBook-Pro  /Users/Shared  brew install --HEAD usbmuxd
Updating Homebrew...==> Downloading https://homebrew.bintray.com/bottles/m4-1.4.18.catalina.bottle.1.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/38758163801a32273c9cb22878353fb7fdd5c42fe807d4b13ffebcf544463693--m4-1.4.18.catalina.bottle.1.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/autoconf-2.71.catalina.bottle.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/29660f4f6571149f0d77e7656dc0c26b7205536224f60cbff263d1a8d439d28b--autoconf-2.71.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/automake-1.16.3_1.catalina.bottle.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/78e6258bb19c6ad00fd1513eb117b8d1549b903795bbcf4a980da78b27f96d04--automake-1.16.3_1.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6_3.catalina.bottle.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/7eee62c59d4e3ba6595b2139bd4e6e8a30fb8258d7549bfebe40062e37d11d87--libtool-2.4.6_3.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2_3.catalina.bottle.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/edcc4297c05f9b8f56859aa882a2dcbb2fa5c8d624ca3fa154913803c225fd41--pkg-config-0.29.2_3.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/libusb-1.0.24.catalina.bottle.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/79a99c80a687e4bad0f3e1d002d728d9af03c45a7f127f4201d32a727f3a913a--libusb-1.0.24.catalina.bottle.tar.gz
==> Cloning https://github.com/libimobiledevice/libusbmuxd.git
Updating /Users/crifan/Library/Caches/Homebrew/libusbmuxd--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 3eb50a0 tools: Flip order of windows.h and winsock2.h to get rid of compiler warning (Windows)
==> Installing dependencies for libusbmuxd: m4, autoconf, automake, libtool, pkg-config and libusb
==> Installing libusbmuxd dependency: m4
==> Pouring m4-1.4.18.catalina.bottle.1.tar.gz
==> Caveats
m4 is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.


If you need to have m4 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/m4/bin:$PATH"' >> ~/.zshrc


==> Summary
🍺  /usr/local/Cellar/m4/1.4.18: 13 files, 672.3KB
==> Installing libusbmuxd dependency: autoconf
==> Pouring autoconf-2.71.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/autoconf/2.71: 71 files, 3.2MB
==> Installing libusbmuxd dependency: automake
==> Pouring automake-1.16.3_1.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/automake/1.16.3_1: 131 files, 3.4MB
==> Installing libusbmuxd dependency: libtool
==> Pouring libtool-2.4.6_3.catalina.bottle.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
🍺  /usr/local/Cellar/libtool/2.4.6_3: 71 files, 3.7MB
==> Installing libusbmuxd dependency: pkg-config
==> Pouring pkg-config-0.29.2_3.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.29.2_3: 11 files, 624.0KB
==> Installing libusbmuxd dependency: libusb
==> Pouring libusb-1.0.24.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/libusb/1.0.24: 22 files, 516.7KB
==> Installing libusbmuxd --HEAD
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/libusbmuxd/HEAD-3eb50a0
==> make install
🍺  /usr/local/Cellar/libusbmuxd/HEAD-3eb50a0: 16 files, 292.3KB, built in 56 seconds
==> Upgrading 3 dependents:
gnupg 2.2.16 -> 2.2.27, ideviceinstaller 1.1.0_4 -> 1.1.1, pyenv 1.2.11 -> 1.2.26
==> Upgrading gnupg 2.2.16 -> 2.2.27
==> Downloading https://homebrew.bintray.com/bottles/bdw-gc-8.0.4_2.catalina.bottle.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/33c8d1bd88694ab27efdab8e47cf0068e629dffb63cd2fd4edd9486934c9bc91--bdw-gc-8.0.4_2.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/guile-3.0.5.catalina.bottle.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/7d30e31d9f5e7914a147598a262b517aeef76c693aea5f4322655b7a8814db77--guile-3.0.5.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/libtasn1-4.16.0_1.catalina.bottle.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/fe292ff7e401ab8adc7950b14c225f08c557ad72a339111afdf454c2d591fc4c--libtasn1-4.16.0_1.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/p11-kit-0.23.22.catalina.bottle.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/675bc77797eb27f4bd0afbf4867104cb8b18eb46171fcabb6a6ec5d81aabc6d7--p11-kit-0.23.22.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/libevent-2.1.12.catalina.bottle.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/c8f3769ad847d95db9fae33b1a021fa1cf05ec204fd2cf583fc73aa0772e3a19--libevent-2.1.12.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/unbound-1.13.1.catalina.bottle.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/48269fda4d1e3b4ebdab12b60d49da04d9931ff5197e0a5167d8b8f09040be61--unbound-1.13.1.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/gnutls-3.6.15.catalina.bottle.1.tar.gz
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/f78c14fcf012640da14def0371e2a43e115feb705562fdfefc5aa70ec99aa0d5--gnutls-3.6.15.catalina.bottle.1.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/libgcrypt-1.9.2.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/ed1eb018869cee6a5475422a05e75019181b8b52b8b9c1b73a7341eac6d96455?response
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/gnupg-2.2.27.catalina.bottle.1.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/eead46a35c3fde2b33c8c6a1ed825a0e474923c97e28dda4a1a92c3f3fefc93b?response
######################################################################## 100.0%
==> Installing dependencies for gnupg: bdw-gc, guile, libtasn1, p11-kit, libevent, unbound, gnutls and libgcrypt
==> Installing gnupg dependency: bdw-gc
==> Pouring bdw-gc-8.0.4_2.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/bdw-gc/8.0.4_2: 69 files, 1.6MB
==> Installing gnupg dependency: guile
==> Pouring guile-3.0.5.catalina.bottle.tar.gz
==> Caveats
Guile libraries can now be installed here:
    Source files: /usr/local/share/guile/site/3.0
  Compiled files: /usr/local/lib/guile/3.0/site-ccache
      Extensions: /usr/local/lib/guile/3.0/extensions


Add the following to your .bashrc or equivalent:
  export GUILE_LOAD_PATH="/usr/local/share/guile/site/3.0"
  export GUILE_LOAD_COMPILED_PATH="/usr/local/lib/guile/3.0/site-ccache"
  export GUILE_SYSTEM_EXTENSIONS_PATH="/usr/local/lib/guile/3.0/extensions"
==> Summary
🍺  /usr/local/Cellar/guile/3.0.5: 834 files, 56.8MB
==> Installing gnupg dependency: libtasn1
==> Pouring libtasn1-4.16.0_1.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/libtasn1/4.16.0_1: 60 files, 536.2KB
==> Installing gnupg dependency: p11-kit
==> Pouring p11-kit-0.23.22.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/p11-kit/0.23.22: 63 files, 3MB
==> Installing gnupg dependency: libevent
==> Pouring libevent-2.1.12.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/libevent/2.1.12: 57 files, 1.9MB
==> Installing gnupg dependency: unbound
==> Pouring unbound-1.13.1.catalina.bottle.tar.gz
==> Caveats
To have launchd start unbound now and restart at startup:
  sudo brew services start unbound
==> Summary
🍺  /usr/local/Cellar/unbound/1.13.1: 57 files, 5.4MB
==> Installing gnupg dependency: gnutls
==> Pouring gnutls-3.6.15.catalina.bottle.1.tar.gz
==> Regenerating CA certificate bundle from keychain, this may take a while...
==> Caveats
If you are going to use the Guile bindings you will need to add the following
to your .bashrc or equivalent in order for Guile to find the TLS certificates
database:
  export GUILE_TLS_CERTIFICATE_DIRECTORY=/usr/local/etc/gnutls/
==> Summary
🍺  /usr/local/Cellar/gnutls/3.6.15: 1,250 files, 11MB
==> Installing gnupg dependency: libgcrypt
==> Pouring libgcrypt-1.9.2.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/libgcrypt/1.9.2: 23 files, 3MB
==> Installing gnupg
==> Pouring gnupg-2.2.27.catalina.bottle.1.tar.gz
🍺  /usr/local/Cellar/gnupg/2.2.27: 140 files, 11.9MB
Removing: /usr/local/Cellar/gnupg/2.2.16... (134 files, 11MB)
==> Upgrading ideviceinstaller 1.1.0_4 -> 1.1.1
==> Downloading https://homebrew.bintray.com/bottles/libimobiledevice-1.3.0.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/eb7f28d86797461d5ef859d00629176e1ce3234790ef17b9ee3f9c9990a664e2?response
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libzip-1.7.3.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/ideviceinstaller-1.1.1.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Installing dependencies for ideviceinstaller: libimobiledevice and libzip
==> Installing ideviceinstaller dependency: libimobiledevice
==> Pouring libimobiledevice-1.3.0.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/libimobiledevice/1.3.0: 71 files, 1.2MB
==> Installing ideviceinstaller dependency: libzip
==> Pouring libzip-1.7.3.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/libzip/1.7.3: 142 files, 625.5KB
==> Installing ideviceinstaller
==> Pouring ideviceinstaller-1.1.1.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/ideviceinstaller/1.1.1: 8 files, 73.2KB
Removing: /usr/local/Cellar/ideviceinstaller/1.1.0_4... (8 files, 60.5KB)
==> Upgrading pyenv 1.2.11 -> 1.2.26
==> Downloading https://homebrew.bintray.com/bottles/pyenv-1.2.26.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/6a5736817f87bfbf97f355975a71ce99c72cff0afb8f5e29920c8eaac003f0ca?response
######################################################################## 100.0%
==> Pouring pyenv-1.2.26.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/pyenv/1.2.26: 747 files, 2.6MB
Removing: /usr/local/Cellar/pyenv/1.2.11... (643 files, 2.4MB)
==> Checking for dependents of upgraded formulae...
==> No broken dependents to reinstall!
==> Caveats
==> m4
m4 is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.


If you need to have m4 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/m4/bin:$PATH"' >> ~/.zshrc


==> libtool
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> guile
Guile libraries can now be installed here:
    Source files: /usr/local/share/guile/site/3.0
  Compiled files: /usr/local/lib/guile/3.0/site-ccache
      Extensions: /usr/local/lib/guile/3.0/extensions


Add the following to your .bashrc or equivalent:
  export GUILE_LOAD_PATH="/usr/local/share/guile/site/3.0"
  export GUILE_LOAD_COMPILED_PATH="/usr/local/lib/guile/3.0/site-ccache"
  export GUILE_SYSTEM_EXTENSIONS_PATH="/usr/local/lib/guile/3.0/extensions"
==> unbound
To have launchd start unbound now and restart at startup:
  sudo brew services start unbound
==> gnutls
If you are going to use the Guile bindings you will need to add the following
to your .bashrc or equivalent in order for Guile to find the TLS certificates
database:
  export GUILE_TLS_CERTIFICATE_DIRECTORY=/usr/local/etc/gnutls/
继续。
brew unlink usbmuxd
输出:
crifan@licrifandeMacBook-Pro  /Users/Shared  brew unlink usbmuxd
Unlinking /usr/local/Cellar/libusbmuxd/HEAD-3eb50a0... 10 symlinks removed.
以及:
 crifan@licrifandeMacBook-Pro  /Users/Shared  brew link usbmuxd
Linking /usr/local/Cellar/libusbmuxd/HEAD-3eb50a0... 10 symlinks created.
然后:
 crifan@licrifandeMacBook-Pro  /Users/Shared  brew install --HEAD libimobiledevice
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/cask-versions and homebrew/cask).
==> Updated Casks
Updated 10 casks.
==> Deleted Casks
battery-guardian                            beatport-pro                                flash-ppapi

==> Cloning https://git.libimobiledevice.org/libimobiledevice.git
Cloning into '/Users/crifan/Library/Caches/Homebrew/libimobiledevice--git'...
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
Error: libimobiledevice 1.3.0 is already installed
To install HEAD-735ac51, first run:
  brew unlink libimobiledevice
Warning: Skipping (old) /usr/local/Cellar/libimobiledevice/1.3.0 due to it being linked
显示说已安装过了。
所以貌似不用安装了。
【总结】
至此,根据:
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
去安装facebook-wda依赖的库,就完成了。
注:觉得先安装,再取消link,再link等,还是有点奇怪。但是暂时不清楚为何要这么安装。有空再深究。

转载请注明:在路上 » 【已解决】Mac中安装facebook-wda依赖的一些库

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
99 queries in 0.188 seconds, using 23.35MB memory