Not able to built WebDriverAgent in iOS mobile devices in Xcode version 14.3. Getting error as "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"
Xcode Version : 14.3
MacOS Version : 13.2.1
Appium Version : 1.22.1
After getting that above error, i gone through the Appium site and they asked us to install Appium 2 which is 2.0.0-beta.65. After installed the latest version, i am able to build the WebDriveragent in mobile
Here, Another issue occured, when i start appium it starts in 1.22.1 version
[Appium] Welcome to
Appium v1.22.3
[Appium] Non-default server args:
[Appium] relaxedSecurityEnabled: true
[Appium] allowInsecure: {
[Appium] }
[Appium] denyInsecure: {
[Appium] }
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
Any other workaround will helpful. I am stuck with these for past two weeks.`
2
Answers
You will face this issue on MAC because WDA present inside Appium is not compatible with your XCode 14.2. When you install Appium, it is equipped with latest WDA at the time of released version for example appium 1.22.3 will come with WebdriverAgent 3.17.0
You can try installing latest WDA using this command
Start webdriver agent using XCodeBuild. Hit this command to do the same
Here device_name is your device name for example iPhone XR
Start appium using command
appium
If above steps does not work for you then you have to replace your WDA manually using below steps. Here are the steps to be followed to replace older WDA to latest WDA
node_modules > appium > node_modules > Appium-webdriver agent
corner.