Code signing certificate error in Appium XCUITest

孤街浪徒 提交于 2020-01-01 03:42:22

问题


I am trying UI automation of IOS 10 using Appium XCUITest. On running script, it tries to build WebDriverAgent and fails at this point. I have added the provisioning profile and added the account in Xcode through the UI but not sure from where does XCUITest take the profiles while running or if we need to provide some information in desired capabilities.

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 **

回答1:


You can fix it as follows:

enters from the Finder to the following path:

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

open: WebDriverAgent.xcodeproj

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

view image: solution appium




回答2:


This issue occurs for Appium 1.6.X, in order to fix the issue please follow the steps:

  1. Go to your Appium folder and find appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj file or you can search for the file name.
  2. Open the file using Xcode.
  3. Select WebDriverAgentLib and In general tab select 'Automatically Manage Signing" and select an id in team dropdown (Ask your developement team to provide you the team id).
  4. Now select the next WebDriverAgentRunner and do the same thing as you did for the WebDriverAgentLib.
  5. In case you get some errors just go to the 'Build Settings' tab and change the "Product Bundle Identifier" from "com.facebook.WebDriverAgentLib" to "com.facebook.WebDriverAgentLibNew".
  6. Come back to general tab and the errors should be fixed.
  7. Now build both WebDriverAgentLib and WebDriverAgentRunner.
  8. When you get the Build succeed message, run your test again.


来源:https://stackoverflow.com/questions/39646676/code-signing-certificate-error-in-appium-xcuitest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!