Appium flutter driver

Hello, I’m attempting to automate flutter using the appium flutter driver. I’m able to connect to real Android devices, but I was unable to do so with real iOS devices.

Environment:
Appium v2.0.0-beta.48
node v18.12.1
xcode 14

Details
const opts = {
port: 4723,
capabilities: {
‘platformName’: ‘iOS’,
‘appium:platformVersion’: ‘15.4.1’,
‘appium:deviceName’: ‘iPhone 6s Plus’,
‘appium:noReset’: true,
‘appium:automationName’: ‘Flutter’,
‘appium:bundleId’:‘com.example.hello_world.MainActivity’,
‘appium:retryBackoffTime’: 500
}
}

Hard to say much without a log, however, this doesn’t look like an iOS bundleId.

Maybe a tutorial will help:

thanks for the reply and Sorry I have provided wrong configuration,but I used this only

const wdio = require(‘webdriverio’);
const assert = require(‘assert’);
const { byValueKey } = require(‘appium-flutter-finder’);

const opts = {
//path :’/wd/hub/’,
port: 4723,
capabilities: {
‘platformName’: ‘iOS’,
‘appium:platformVersion’: ‘15.4’,
‘appium:deviceName’: ‘RXTTiPhone’,
‘appium :udid’:‘bab36a9fa8f5c03e3ae1c9dc396feeb397f88535’,
‘appium:automationName’: ‘Flutter’,
‘appium:bundleID’:‘net.redeemx.patron.testApp’,
‘appium:retryBackoffTime’: 500
}
};
I am attempting to connect with a real device, but Appium keeps searching in the simulator. I have attached a screenshot of the error I encountered.

Could you try removing the space between appium and the colon (‘:’)?

Also try changing bundleID to bundleId.

You also might add the app capability.

More here:
https://appium.io/docs/en/writing-running-appium/caps/

I tried it, when i run the code i received the below error message

WARN webdriver: Request failed with status 500 due to An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

Could you please help me to resolve this issue?

You’ve got to build the webdriveragent:

Thanks for the reply, I tried this but still face the issues, is this for native app or common to flutter app also, if not could you please provide the real device iOS capabilities for flutter app By using the appium flutter driver

I put a tutorial in the first reply to this thread that has all this information. It includes capabilities for both Android and iOS. Can you not follow the tutorial?