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成功

发表回复

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