码迷,mamicode.com
首页 > Web开发 > 详细

WebDriverAgentRunner安装成功后build的常见报错

时间:2020-01-18 16:09:22      阅读:1492      评论:0      收藏:0      [点我收藏+]

标签:cal   string   not   ann   agent   nbsp   img   xcode   setting   

1.缺少development team

$ xcodebuild -project WebDriverAgent.xcodeproj \
> -scheme WebDriverAgentRunner \
> -destination ‘platform=iOS,name=iPhone (2)‘ \
> test
2019-12-17 09:20:29.973 xcodebuild[30451:2032814] DTDeviceKit: deviceType from aa3c395a15b4edcc21c4df8f0182a7ffc307e61f was NULL
2019-12-17 09:20:30.026 xcodebuild[30451:2032862] DTDeviceKit: deviceType from aa3c395a15b4edcc21c4df8f0182a7ffc307e61f was NULL
... //中间内容省略

Testing failed:
Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the Signing & Capabilities editor.
Testing cancelled because the build failed.

** TEST FAILED **

 解决:将Automatically manage signing进行勾选后选择一个Team,注意要进入WebDriverAgentRunner中进行设置

 技术图片

 

 技术图片

 

 

2.bundle indentifler不唯一,提示“The app ID "com.facebook.WebDriverAgentRunner" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.”

 

 

 

 技术图片

 

 

解决:请进入WebDriverAgentRunner -> Build Settings设置中,找到Packaging中的选项,将其内容修改为唯一识别的字符串,如下图所示

技术图片

 

 

技术图片

 3.build的时候有两个fail报错

1)Semantic issue: ‘assign‘ property of object type may become a dangling reference; consider using ‘unsafe_unretained‘
2)Parse Issue: Could not build module ‘RoutingHTTPServer‘

技术图片

 

 解决:报错出双击,进入到报错代码处,将assign改为strong后再次build

 技术图片

 

 技术图片

 4.提示配置证书信任

技术图片

 技术图片

 解决:打开iphone5s 设置-通用功能-描述文件与设备管理-开发者应用-添加信任,配置证书信任后重试

   

 转载:https://blog.csdn.net/weixin_43291944/article/details/103562488

WebDriverAgentRunner安装成功后build的常见报错

标签:cal   string   not   ann   agent   nbsp   img   xcode   setting   

原文地址:https://www.cnblogs.com/kaola8023/p/12209135.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!