【发布时间】:2017-01-24 03:54:31
【问题描述】:
我很高兴升级到 XCode8 并尝试在 iOS 10 上运行测试,但后来发现 XCode8 不再支持自动化工具。所以我接受了需要等待 Appium 正式升级才能在 iOS10 上运行测试的事实。
但是在我降级到 Xcode 7.3.1 之后发生的事情真的让我很困惑。即使在 XCode8 升级之前还可以的 iOS8/9 设备上,我也一直收到此错误:“WebDriverException:处理命令时发生未知的服务器端错误。原始错误:删除 {appId} 失败”。为什么即使我现在回到 XCode 7.3.1 也会发生这种情况?我尝试了所有我能想到的方法,包括删除/重新安装 ideviceinstaller。
在这里提供更多信息是我的开发者设置:
--session-override --full-reset --native-instruments-lib --default-capabilities "{\"newCommandTimeout\": \"7200\"}"
该错误与 --full-reset 有关。但是从设置中删除它会触发另一个错误:
[debug] [iOS] App is not installed. Will try to install.
[MJSONWP] Encountered internal error running command:
Error: Installing {path to the app}
failed at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/node-idevice/main.js:159:6
at ChildProcess.exithandler (child_process.js:193:7)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Socket. (internal/child_process.js:323:11)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at Pipe._onclose (net.js:475:12)
降级到 XCode7.3.1 后一定有一些东西没有正确恢复。看起来像是被移除的 XCode 8 的一些残留物破坏了一切。
有人有解决办法吗?
谢谢!
【问题讨论】:
标签: appium-ios