在最新系统macOS 11.1及以上使用新版Xcode编译WebDriverAgent时,提示“Buiding for iOS,but the embedded framework ‘RoutingHTTPServer.framework’ was built for iOS + iOS Simulator”、“Buiding for iOS,but the embedded framework ‘YYCache.framework’ was built for iOS + iOS Simulator”等错误,如图所示
解决方法:
1.使用Xcode打开WebDriverAgent项目
2.选中WebDriverAgent,点击【Build Settings】
3.找到Validate Workspace,将“No”改为“Yes”,如图
4.重新运行,成功编译WebDriverAgent
5、WDA运行成功后,在手机上会有一个ipa的icon,如图
欢迎关注公众号: