2016-09-22 67 views
1

我正在尝试使用Appium XCUITest的IOS 10的UI自动化。 在运行脚本时,它会尝试构建WebDriverAgent并在此时失败。我已经添加了配置文件,并通过用户界面在Xcode中添加了帐户,但不知道XCUITest在运行时是从哪里获取配置文件的,或者是否需要提供所需功能的某些信息。Appium XCUITest中的代码签名证书错误

info Xcode Testing failed: 
info Xcode Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor. 
info Xcode Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0' 
info Xcode ** TEST FAILED ** 
+0

请参阅http://stackoverflow.com/questions/40484957/appium-error-xcode-couldnt-find-a-provisioning-profile-matching-com-facebook-w/41628500#41628500解决方案。 – manuagupta

回答

4

如下可以修复:

从Finder进入到以下路径:

/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent 

开放:WebDriverAgent.xcodeproj

select the targets: 
WebDriverAgentLib 
WebDriverAgentRunner 
go to General tab -> Signing 
and place the team 

视图图像: solution appium

1

出现此问题的Appium 1.6.x版,为了解决该问题,请按照下列步骤:

  1. 转到您的Appium文件夹,找到appium/node_modules/appium-xcuitest驱动器/ WebDriverAgent/WebDriverAgent。 xcodeproj文件或者您可以搜索文件名。
  2. 使用Xcode打开文件。
  3. 选择WebDriverAgentLib并在常规选项卡中选择“自动管理签名”,并选择在团队下拉的ID(问问你的研究与开发团队为您的团队ID)。
  4. 现在选择下一WebDriverAgentRunner和做同样的事情,你对于WebDriverAgentLib
  5. 如果您遇到一些错误,只需转到“Build Settings”选项卡,并将“Product Bundle Identifier”从“com.facebook.WebDriverAgentLib”更改为“com.facebook.WebDriverAgentLibNew”
  6. 回到常规选项卡,错误应该修复
  7. 现在构建WebDriverAgentLib和WebDriverAgentRunner。
  8. 当您收到编译成功消息时,再次运行您的测试。
+1

欢迎!一个解决方案的链接是受欢迎的,但请确保你的答案是有用的没有它:[添加链接的上下文](/ meta.stackexchange.com/a/8259),以便您的同行用户将有一些想法是什么和为什么它在那里,然后引用你链接到的页面中最相关的部分,以防目标页面不可用。 [只有链接的答案可能会被删除。](// stackoverflow.com/help/deleted-answers) –

+0

感谢您指出,我编辑了答案并添加了步骤而不是链接。我相信它会更有帮助。 –