只能靠点坐标了吗…………
直接 sendKeys("中文") 就可以了,不要问我为什么,我是意外试出来的
不好意思,回复晚了,的确如 yujie 所说,是开发证书没装的问题。安装上去就 ok 了。
现在的报错,还有个 warning,但能读到我的手机名称,是不是说不是 udid 的问题,而是另有问题?
error: Failed to start an Appium session, err was: Error: Unable to install [/Users/xxxxxx/TestApp.app] to device with id [d80ffdd9ac3............978936346ec18569]. Error [Error: Command failed: ]
info: Error: Unable to install [/Users/xxxxxxxx/TestApp.app] to device with id [d80ffdd9ac3............978936346ec18569]. Error [Error: Command failed: ]
at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/common.js:130:10
at ChildProcess.exithandler (child_process.js:651:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:753:16)
at Socket. (child_process.js:966:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Unable to install [/Users/xxxxxxxx/TestApp.app] to device with id [d80ffdd9ac3............978936346ec18569]. Error [Error: Command failed: ])","origValue":"Unable to install [/Users/xxxxxxx/TestApp.app] to device with id [d80ffdd9ac3............978936346ec18569]. Error [Error: Command failed: ]"},"sessionId":null}
POST /wd/hub/session 500 2749ms - 536b
debug: [IOS_SYSLOG_ROW ] Jun 18 20:21:28 我的 iPhone 名称 mobile_installation_proxy[2751] : LaunchServices: Please include the kCFBundleIdentifierKey in the options dictionary when installing an app.
那里看到的是 device id。试过了,不行。找不到设备