Appium appium 针对 hybrid app 的针对 ios 真机测试的问题

tony · 2013年11月12日 · 最后由 恒温 回复于 2013年11月12日 · 1649 次阅读

1.通过 brew install iso-webkit-debug-proxy 后
2.ios_webkit_debug_proxy -c 0e4b2f612b65e98c1d07d22ee08678130d345429:27753 -d
运行这个命令总是说 ios_webkit_debug_proxy :commond not found!.

这个要怎么解决,有哪位大神可以帮忙一下,谢谢。

共收到 12 条回复 时间 点赞

brew 安装后就应该能认出,除非你 brew 的安装路径不在 path 里。

tony #2 · 2013年11月12日 Author

brew 我是可以认出来的 brew doctor 都没问题的.您能加我 qq 吗 我这个问题很急的,论坛不太方便,232931904,谢谢您了。

貌似你的 ios-webkit-debug-proxy 都敲错了啊。。。 是粗心的问题? p.s 加个头像吧?

tony #4 · 2013年11月12日 Author

谢谢您了,早日康复,头像晚上回家去加,公司网络差。还有个问题,您有时间帮我一下,就是这个我都已经弄完了,怎么样才能运行在真机中啊,环境我都配置好了

#5 楼 @tony 请别用 您。。。 我们都是平等的。。 @monkey 才是大牛。。

#5 楼 @tony =。=。。他没有生病,家里一些特殊情况,不用那么客气拉~~

#6 楼 @lihuazhang 我想怎么又提示 1 了。= =

tony #8 · 2013年11月12日 Author

恩恩 好的, hybrid app 我是用 RomoteWebDriver 吗, 为什么不能通过 id 点击和输入内容呢。

tony #10 · 2013年11月13日 Author

node . -U --app 这个命令要怎么用啊,在什么目录下用。
总是报 cannot find module "/Users/ljq/"

#10 楼 @tony appium 的 source code 下面。 官方文档里的 如果用 node 直接执行的,都是基于源代码的。

tony #11 · 2013年11月13日 Author

运行 node . -U 这个命令后会出现如下错误:怎么解决啊 could not find config file;looks like config hasn't been run 。lihuazhang 您可以加我 qq 吗,232931904

➜  ~  brew install ios-webkit-debug-proxy
Warning: No developer tools installed.
You should install the Command Line Tools.
Run `xcode-select --install` to install them.
==> Installing dependencies for ios-webkit-debug-proxy: cmake, libplist, libusb, usbmuxd, libtasn1, xz, p11-kit, gmp, nettle, gnutls, libgcrypt, libimo
==> Installing ios-webkit-debug-proxy dependency: cmake
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/cmake-2.8.12.1.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cmake-2.8.12.1.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/cmake/2.8.12.1: 701 files, 36M
==> Installing ios-webkit-debug-proxy dependency: libplist
==> Downloading http://cgit.sukimashita.com/libplist.git/snapshot/libplist-1.10.tar.bz2
Already downloaded: /Library/Caches/Homebrew/libplist-1.10.tar.bz2
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file src/Dictionary.cpp
==> cmake . -DCMAKE_INSTALL_NAME_DIR=/usr/local/Cellar/libplist/1.10/lib -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/libplist/1.10 -DCMAKE_BUILD_TYPE=None -DCMAK
==> make install
🍺  /usr/local/Cellar/libplist/1.10: 24 files, 256K, built in 15 seconds
==> Installing ios-webkit-debug-proxy dependency: libusb
==> Downloading http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libusb/1.0.9
==> make install
🍺  /usr/local/Cellar/libusb/1.0.9: 11 files, 416K, built in 23 seconds
==> Installing ios-webkit-debug-proxy dependency: usbmuxd
==> Downloading http://www.libimobiledevice.org/downloads/usbmuxd-1.0.8.tar.bz2
######################################################################## 100.0%
==> cmake .. -DLIB_SUFFIX= -DUSB_INCLUDE_DIR=/usr/local/Cellar/libusb/1.0.9/include/libusb-1.0 -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/usbmuxd/1.0.8 -DCMAKE_
==> make install
🍺  /usr/local/Cellar/usbmuxd/1.0.8: 9 files, 140K, built in 8 seconds
==> Installing ios-webkit-debug-proxy dependency: libtasn1
==> Downloading http://ftpmirror.gnu.org/libtasn1/libtasn1-3.3.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtasn1/3.3
==> make install
🍺  /usr/local/Cellar/libtasn1/3.3: 51 files, 628K, built in 52 seconds
==> Installing ios-webkit-debug-proxy dependency: xz
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/xz-5.0.5.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring xz-5.0.5.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/xz/5.0.5: 58 files, 1.5M
==> Installing ios-webkit-debug-proxy dependency: p11-kit
==> Downloading http://p11-glue.freedesktop.org/releases/p11-kit-0.18.4.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/p11-kit/0.18.4 --disable-trust-module
==> make
==> make check
==> make install
🍺  /usr/local/Cellar/p11-kit/0.18.4: 50 files, 908K, built in 66 seconds
==> Installing ios-webkit-debug-proxy dependency: gmp
==> Downloading ftp://ftp.gmplib.org/pub/gmp/gmp-5.1.3.tar.bz2
######################################################################## 100.0%
==> Patching
patching file gmp-h.in
==> ./configure --prefix=/usr/local/Cellar/gmp/5.1.3 --enable-cxx
==> make
==> make check
==> make install
🍺  /usr/local/Cellar/gmp/5.1.3: 12 files, 2.5M, built in 6.9 minutes
==> Installing ios-webkit-debug-proxy dependency: nettle
==> Downloading http://www.lysator.liu.se/~nisse/archive/nettle-2.6.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/nettle/2.6 --enable-shared
==> make
==> make install
==> make check
🍺  /usr/local/Cellar/nettle/2.6: 61 files, 1.2M, built in 52 seconds
==> Installing ios-webkit-debug-proxy dependency: gnutls
==> Downloading ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/gnutls-3.1.10.tar.xz
######################################################################## 100.0%
==> Patching
patching file configure
==> ./configure --disable-static --prefix=/usr/local/Cellar/gnutls/3.1.10
==> make install
🍺  /usr/local/Cellar/gnutls/3.1.10: 873 files, 6.9M, built in 3.4 minutes
==> Installing ios-webkit-debug-proxy dependency: libgcrypt
==> Downloading ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.3.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libgcrypt/1.5.3 --disable-asm --with-gpg-error-prefix=/usr/local
==> make CFLAGS=-std=gnu89 -fheinous-gnu-extensions
==> make check
==> make install
🍺  /usr/local/Cellar/libgcrypt/1.5.3: 14 files, 680K, built in 2.4 minutes
==> Installing ios-webkit-debug-proxy dependency: libimobiledevice
==> Downloading http://www.libimobiledevice.org/downloads/libimobiledevice-1.1.5.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libimobiledevice/1.1.5 --without-cython
==> make install
🍺  /usr/local/Cellar/libimobiledevice/1.1.5: 52 files, 800K, built in 35 seconds
==> Installing ios-webkit-debug-proxy
==> Downloading https://github.com/google/ios-webkit-debug-proxy/archive/1.3.tar.gz
######################################################################## 100.0%
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/ios-webkit-debug-proxy/1.3
==> make install
🍺  /usr/local/Cellar/ios-webkit-debug-proxy/1.3: 15 files, 164K, built in 23 seconds

安装成功了。

➜  ~  which ios_webkit_debug_proxy
/usr/local/bin/ios_webkit_debug_proxy
➜  ~  ios_webkit_debug_proxy -c 0e4b2f612b65e98c1d07d22ee08678130d345429:27753 -d
ss.add_fd(3)
select_port() failed
ss.recv fd=3 len=294
ss.recv fd=3 len=684
select_port() failed

运行成功了。

我只能帮你这么点。。。我在医院不方便。。

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册