Setup appium inspector to run ipa on real devices iphone

the desired capabilities:
{
“platformName”: “iOS”,
“appium:deviceName”: “iPhone 6s”,
“appium:app”: “/Users/laymui/dev/taiger/react-native-stock-price-app/tests/apps/stockprice.ipa”,
“appium:automationName”: “XCUITest”
}

Failed to create session. An unknown server-side error occurred while processing the command. Original error: Simulator architecture is unsupported by the ‘/var/folders/qc/qm46gtzd5_bff360tmvm6pq00000gn/T/202233-73528-114a77h.1mk2/stockprice.app’ application. Make sure the correct deployment target has been selected for its compilation in Xcode.

  1. Did you complete any way of prepare appium for real ios ?
  2. I do not see developer id in capabilities…

Are you trying to test an app built for a real device on Simulator? This won’t work

You need to give the capability: “appium:udid”: “<udid>” for a real device.

Easiest built in way to get udid is from command line: xcrun xctrace list devices. Even easier if installed is idevice_id

1 Like

I got this error now:
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Could not install ‘/var/folders/qc/qm46gtzd5_bff360tmvm6pq00000gn/T/202233-89517-taf4mv.jixqp/stockprice.app’: - Could not extract Info.plist from ‘stockprice.app’: Plist file doesn’t exist: ‘/var/folders/qc/qm46gtzd5_bff360tmvm6pq00000gn/T/202233-89517-taf4mv.jixqp/stockprice.app/Info.plist’ - 2022-04-04 13:01:44.808 ios-deploy[57446:7982837] [ !! ] Error 0xe8000051: Could not inspect the application package. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)

here is my updated desired capabilities:
{
“platformName”: “iOS”,
“appium:deviceName”: “iPhone 6s”,
“appium:app”: “/Users/laymui/dev/taiger/react-native-stock-price-app/tests/apps/stockprice.ipa”,
“appium:automationName”: “XCUITest”,
“appium:udid”: “a12510a8c8ec79876d8e10f38da17fb97dc720c3”,
“appium:bundleId”: “com.app.laymui.stockprice”,
“appium:xcodeOrgId”: “LayMui Toh”,
“appium:xcodeSigningId”: “iPhone Developer”
}

yes I want to run the app (ipa) in real device.

I have updated the desire capabilities to
{
“platformName”: “iOS”,
“appium:deviceName”: “iPhone 6s”,
“appium:app”: “/Users/laymui/dev/taiger/react-native-stock-price-app/tests/apps/stockprice.ipa”,
“appium:automationName”: “XCUITest”,
“appium:udid”: “a12510a8c8ec79876d8e10f38da17fb97dc720c3”,
“appium:bundleId”: “com.app.laymui.stockprice”,
“appium:xcodeOrgId”: “LayMui Toh”,
“appium:xcodeSigningId”: “iPhone Developer”
}

I am able to build and run the ipa from xcode on the real devices

but not able to use the appium inspector on the real device

I have updated the desired capabilties
to

{
“platformName”: “iOS”,
“appium:deviceName”: “iPhone 6s”,
“appium:app”: “/Users/laymui/dev/taiger/react-native-stock-price-app/tests/apps/stockprice.ipa”,
“appium:automationName”: “XCUITest”,
“appium:udid”: “a12510a8c8ec79876d8e10f38da17fb97dc720c3”,
“appium:bundleId”: “com.app.laymui.stockprice”,
“appium:xcodeOrgId”: “LayMui Toh”,
“appium:xcodeSigningId”: “iPhone Developer”
}

but I still get an error

Failed to create session. An unknown server-side error occurred while processing the command. Original error: Could not install ‘/var/folders/qc/qm46gtzd5_bff360tmvm6pq00000gn/T/202233-89517-taf4mv.jixqp/stockprice.app’: - Could not extract Info.plist from ‘stockprice.app’: Plist file doesn’t exist: ‘/var/folders/qc/qm46gtzd5_bff360tmvm6pq00000gn/T/202233-89517-taf4mv.jixqp/stockprice.app/Info.plist’ - 2022-04-04 13:35:04.362 ios-deploy[61504:8030284] [ !! ] Error 0xe8000051: Could not inspect the application package. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)

App file for Simulator, Ipa for real device. Pls update

You need to share the full log. You can share it as a git gist

here is my desired capabilties on the iOS Simulator
{
“platformName”: “iOS”,
“appium:deviceName”: “iPhone 13”,
“appium:app”: “/Users/a845751yara.com/poc/react-native-stock-price-app/tests/apps/stockprice.app”,
“appium:automationName”: “XCUITest”,
“appium:platformVersion”: “15.4”
}

it’s working for me now
need to run WDA

cd /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent

 xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=a12510a8c8ec79876d8e10f38da17fb97dc720c3' test

1 Like

this is first question that asked ->

PS nice that fixed now

1 Like

i run on the actual app
it is not working on the iOS simulator
it works for my POC app

i got this error
[WD Proxy] connect ECONNREFUSED 127.0.0.1:8100

[W3C (1abf7d52)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED