Skip to content

fix: update xcodebuild commands for the new binding ip capability#1067

Merged
mykola-mokhnach merged 1 commit into
appium:masterfrom
karlbaumg:ip-for-build
Nov 1, 2025
Merged

fix: update xcodebuild commands for the new binding ip capability#1067
mykola-mokhnach merged 1 commit into
appium:masterfrom
karlbaumg:ip-for-build

Conversation

@karlbaumg
Copy link
Copy Markdown

@karlbaumg karlbaumg commented Nov 1, 2025

While testing #1066 with the driver, I noticed the binding IP is not propagated in some cases. I validated this PR together with appium/appium-xcuitest-driver#2645 with the following test:

const {remote} = require('webdriverio');

const capabilities = {
  platformName: 'iOS',
  'appium:automationName': 'XCUITest',
  'appium:deviceName': 'iPhone 16 Pro',
  'appium:app': 'com.apple.mobilesafari',
  'appium:wdaBindingIP': "10.244.1.3",
  'appium:wdaRemotePort': 8100,
};

const wdOpts = {
  hostname: process.env.APPIUM_HOST || 'localhost',
  port: parseInt(process.env.APPIUM_PORT, 10) || 4723,
  logLevel: 'info',
  capabilities,
};

async function runTest() {
  const driver = await remote(wdOpts);
  try {
    const batteryItem = await driver.$('//*[@text="Battery"]');
    await batteryItem.click();
  } finally {
    await driver.pause(1000);
    await driver.deleteSession();
  }
}

runTest().catch(console.error);

In the logs I see the custom IP is used and 127.0.0.1:8100 does not answer which is the expected behavior.

Signed-off-by: Karl Baumgartner <178656887+karlbaumg@users.noreply.github.com>
@mykola-mokhnach mykola-mokhnach merged commit d12f421 into appium:master Nov 1, 2025
41 of 44 checks passed
github-actions Bot pushed a commit that referenced this pull request Nov 1, 2025
## [10.2.1](v10.2.0...v10.2.1) (2025-11-01)

### Miscellaneous Chores

* update xcodebuild commands for the new binding ip capability ([#1067](#1067)) ([d12f421](d12f421))
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 1, 2025

🎉 This PR is included in version 10.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@KazuCocoa
Copy link
Copy Markdown
Member

Hi @karlbaumg, congrats: the Appium project wants to compensate you for this contribution! Please reply to this comment mentioning @jlipps and @KazuCocoa and sharing your OpenCollective account name, so that we can initiate payment! Or let us know if you decline to receive compensation via OpenCollective. Thank you!

manabuaota added a commit to manabuaota/airtest-netease that referenced this pull request Feb 14, 2026
## [10.2.1](appium/WebDriverAgent@v10.2.0...v10.2.1) (2025-11-01)

### Miscellaneous Chores

* update xcodebuild commands for the new binding ip capability ([#1067](appium/WebDriverAgent#1067)) ([d12f421](appium/WebDriverAgent@d12f421))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants