我在真正的 iOS 设备上执行自动化时遇到问题
系统配置:
appium 1.6.0
设备 iPhone 5c (ios 10.1)
代码 8.2
异常(exception)是:
[Xcode]
Testing failed:
No profiles for 'com.facebook.WebDriverAgentRunner' were found: Xcode couldn't find a provisioning profile matching 'com.facebook.WebDriverAgentRunner'.
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.1'
** TEST FAILED **
The following build commands failed:
Check dependencies
(1 failure)
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess.<anonymous> (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.<anonymous> (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
Error: xcodebuild failed with code 65
at SubProcess.<anonymous> (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.<anonymous> (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[debug] [XCUITest] Running ios real device reset flow
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess.<anonymous> (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.<anonymous> (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
在 xCode 中,当我尝试签署 WebDriverAgentRunner 时,它似乎无法创建配置文件,并且
未找到“com.facebook.WebDriverAgentRunner”的个人资料
- - -编辑 - - - -
在尝试使用我的免费开发者帐户签署 WebDriverAgentRunner 后,我得到了
xcode 中的以下错误
请协助。
最佳答案
我在签署“WebDriverAgentRunner”时面临同样的问题,因为它没有任何目标应用程序来选择相应的字段显示“无”。
我在搜索解决方案时找到了这个链接:
https://github.com/appium/appium/issues/7086
它说
也许它可以帮助你,虽然我还没有尝试过。但是,如果您得到任何解决方案,也请在这里分享。
关于ios - Appium 错误 Xcode 找不到与 'com.facebook.WebDriverAgentRunner' 匹配的配置文件,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/40484957/