Xcode15 build WebDriverAgent提示Parameter of overriding method should be annotated的解决方法

完整提示:

/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/PrivateHeaders/XCTest/XCTestCase.h:54:42: Parameter of overriding method should be annotated with __attribute__((noescape))

解决方法:

1.将Xcode15的Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/目录下的PrivateFrameworks文件夹替换成Xcode14的,然后将PrivateFrameworks目录下的XCTAutomationSupport.framework文件夹替换成Xcode13的,不然会提示“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”

2.下载appium-webdriveragent版本5.6.0(npm i appium-webdriveragent@5.6.0)

将appium-webdriveragent目录下的build文件夹替换成appium安装路径下的build文件夹(

/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/build),然后用Xcode15打开appium-webdriveragent/WebDriverAgent.xcodeproj

文件修改对应的签名信息进行build即可。

转载请说明出处内容投诉
CSS教程_站长资源网 » Xcode15 build WebDriverAgent提示Parameter of overriding method should be annotated的解决方法

发表评论

欢迎 访客 发表评论

一个令你着迷的主题!

查看演示 官网购买