Appium App 一直打开闪退,打开闪退,进不去

Smile · 2018年06月18日 · 最后由 dd 回复于 2018年06月22日 · 1650 次阅读

[XCUITest] Simulator architecture appears to be unsupported by the '/Users/william/Desktop/DeskDocument/Hoosho.app' application. Make sure the correct deployment target has been selected for its compilation in Xcode.
[XCUITest] Don't be surprised if the application fails to launch.
[XCUITest] *********************************
[debug] [XCUITest] Reset requested. Removing app with id 'com.huxiu' from the device
[debug] [XCUITest] Installing '/Users/william/Desktop/DeskDocument/Hoosho.app' on Simulator with UUID '471E3168-69E5-4E0D-90E2-BE9744788B29'...
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1529319730642 (19:02:10 GMT+0800 (CST))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.3\",\n \"sdkVersion\" : \"11.3\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.3\",\n \"ip\" : \"192.168.0.100\"\n },\n \"build\" : {\n \"time\" : \"Jun 18 2018 18:58:19\"\n }\n },\n \"sessionId\" : \"BEB8E2B3-EAA6-4BED-A0B9-7D793C8042EE\",\n \"status\" : 0\n}"
[XCUITest] Will reuse previously cached WDA instance at 'http://localhost:8100/'. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior.
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1529319730804 (19:02:10 GMT+0800 (CST))
[XCUITest] Using provided WebdriverAgent at 'http://localhost:8100/'
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1529319730806 (19:02:10 GMT+0800 (CST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.3\",\n \"sdkVersion\" : \"11.3\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.3\",\n \"ip\" : \"192.168.0.100\"\n },\n \"build\" : {\n \"time\" : \"Jun 18 2018 18:58:19\"\n }\n },\n \"sessionId\" : \"BEB8E2B3-EAA6-4BED-A0B9-7D793C8042EE\",\n \"status\" : 0\n}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.huxiu","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
共收到 7 条回复 时间 点赞

不会看异常日志吗?

包的问题,编译不通过

arrow 回复

Xcode 用的少,所以不知道要具体要配那项

John 回复

我直接编译装在手机上的,手动可以打开,但是 Appium 调用的时候就一直闪退,不知道编译的时候该配置什么

我记得手机设置 - 开发者选项里要打开一个允许自动化的开关(好久不搞 iOS 记不得了)

zzZZZ 回复

谢谢~

请问一下楼主这个一直闪退的问题你是怎么解决的呢?

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