新手区 Macaca 定位工具 app-inspector 启动报错:xctest-client.js:50:14 [master] pid:1684 project path not found

马尾 · 2016年11月11日 · 最后由 tfzhou 回复于 2017年01月18日 · 2239 次阅读

1、前提:已成功安装 macaca 和 app-inspector

bogon:macaca-test lunkr$ macaca doctor

  macaca-doctor version: 1.0.27


  Node.js checklist:

  node env: /usr/local/bin/node
  node version: v6.3.0

  iOS checklist:

  Xcode is installed at: `/Applications/Xcode.app/Contents/Developer`
  Xcode Command Line Tools is ready, version: 2343.
  iproxy[usbmuxd] is installed at: `/usr/local/bin/iproxy`
  ios_webkit_debug_proxy is installed at: `/usr/local/bin/ios_webkit_debug_proxy`

  Android checklist:

  JAVA version is `1.8.0_73`
  JAVA_HOME is not set
  ANDROID_HOME is not set

  Installed driver list:

  electron: 1.1.4
  ios: 1.0.41

2、问题描述

bogon:macaca-test lunkr$ app-inspector -u 3BFC9033-C8A4-4C59-A9D2-0ECA244EA193
>> xctest-client.js:50:14 [master] pid:1684 project path not found
>> app-inspector:66:44 [master] pid:1684 Error: >> xctest-client.js:50:14 [master] pid:1684 project path not found
    at Logger.error (/usr/local/lib/node_modules/app-inspector/node_modules/xlogger/lib/xlogger.js:169:9)
    at XCTest.checkProjectPath (/usr/local/lib/node_modules/app-inspector/node_modules/xctest-client/lib/xctest-client.js:50:14)
    at XCTest.init (/usr/local/lib/node_modules/app-inspector/node_modules/xctest-client/lib/xctest-client.js:43:10)
    at new XCTest (/usr/local/lib/node_modules/app-inspector/node_modules/xctest-client/lib/xctest-client.js:39:10)
    at Object.exports.initDevice (/usr/local/lib/node_modules/app-inspector/lib/ios.js:90:12)
    at next (native)
    at onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/co/index.js:65:19)
    at /usr/local/lib/node_modules/app-inspector/node_modules/co/index.js:54:5
    at co (/usr/local/lib/node_modules/app-inspector/node_modules/co/index.js:50:10)
    at toPromise (/usr/local/lib/node_modules/app-inspector/node_modules/co/index.js:118:63)

3、补充

本人小白一枚,个人能力有限,希望有大神指教指教!

共收到 7 条回复 时间 点赞

Test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)

xctest-client.js:163:14 [master] pid:19576 please check project: /usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.1.0.28@webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
xctest-client.js:162:14 [master] pid:19576 ** TEST FAILED **

xctest-client.js:163:14 [master] pid:19576 please check project: /usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.1.0.28@webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj

运行 app-inspector 一直报这个错,求教,webDriverAgent crash

打开/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.1.0.28@webdriveragent/ 这个文件夹,里面有一个 webdriveragent.zip, 解压,里面是 webdriveragent 的 project,然后按照其他教程的方法,修改 BundleID 和签名 Team 就好了

#2 楼 @mouseyoung 麻烦帮忙看下我的问题呗

#2 楼 @mouseyoung 找不到你说的文件夹噢,是不是给错目录了呢?

该问题已解决,谢谢@mouseyoung的指点。

具体方法如下:

1、打开/usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent,把 webdriveragent.zip 解压;

2、用 xcode 打开步骤一解压后的 project,然后按照以下链接的方法进行重签名即可。
https://testerhome.com/topics/5804

@lukcyjane @mouseyoung 请重装 macaca-ios,解压功能兼容性问题解决


楼主,你的这两个环境怎么配置的?解决了吗?我配置总是出错误。

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