报错:Provisioning profile "iOS Team Provisioning Profile: doesn't match the entitlements file's

问题:Provisioning profile "iOS Team Provisioning Profile: com.jiejing.WebDriverAgentRunner" doesn't match the entitlements file's value for the get-task-allow entitlement.

这个问题我搞了一下午也没有通过免费的apple Id搞出来,最后我只能求助ios开发人员将我的apple Id添加入公司的ios开发群组,然后像我第一篇appium:http://www.javashuo.com/article/p-cafvfyrt-nu.html中的第四步,用Xcode打开WebDriverAgent中的WebDriverAgent.xcodeproj, 然后将WebDriverAgent和WebDriverAgentLib和WebDriverAgentRunner的Bundle identifier改为你公司app的bunleid就可以了,然后将Team改为你团队开发者就好了。

最后测试一下:

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=<udid>' test

 出现下图就说明代码签名配置成功了:

Test Suite 'All tests' started at 2019-03-16 16:37:33.795
Test Suite 'WebDriverAgentRunner.xctest' started at 2019-03-16 16:37:33.801
Test Suite 'UITestingUITests' started at 2019-03-16 16:37:33.807
Test Case '-[UITestingUITests testRunner]' started.
    t =  0.04s Start Test at 2019-03-16 16:37:33.899
    t =  0.12s Set Up