error build: Cannot link directly with dylib/framework, your binary is not an allowed client of /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework/XCTAutomationSupport for architecture arm64

解决办法如下

1. 如果你的appium版本最新的,直接跳到第3步。

否则卸载appium desktopfinder/application里找到app后直接拖到垃圾桶

2. 下载安装最新appium desktop:​​​​​​​ ​​​​​​​Releases · appium/appium-desktop · GitHub

3. finder/application里找到最新安装appium app, 右击选择show package contents,定位到WebDriverAgent.xcodeproj所在路径

参考:/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appiumwebdriveragent

4. 下载最新的WedDriverAgent: ​​​​​​Releases · appium/WebDriverAgent · GitHub 

下载好的WedDriverAgent里的全部内容替换第三步的路径下(原内容可全部删除)

5. xcode选择最新的WebDriverAgent.xcodeproj, build成功

原文地址:https://blog.csdn.net/liang53057/article/details/127533288

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_29868.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱suwngjj01@126.com进行投诉反馈,一经查实,立即删除!

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注