iOS - Bad parameters: BadParametersError: Parameters were incorrect [SOLVED]

macOS Sierra version 10.12(16A323)
Appium v1.6.3
Xcode Version 8.0

Cannot execute test in a real device.
I can execute in real device when app is installed manually.
But when it is let to install with script, it does not install app.

[debug] [MJSONWP] Bad parameters: BadParametersError: Parameters were incorrect. We wanted {“required”:[“desiredCapabilities”],“optional”:[“requiredCapabilities”,“capabilities”,“sessionId”,“id”,“sessionId”,“id”,“sessionId”,“id”]} and you sent [“capabilities”]

My script as follows…

Looking for a solution… :confused:

1 Like

I’m having this exact problem. Did you find a solution?

Did you try with .ipa of the app?
With xcode , product > archive > save as adhoc > export > will give you .ipa of your app.
Then give capability as,

capabilities.setCapability("app", "aa/bb/zzz.ipa");

I don’t know will it work or not. Can you plz try it?

And also keep in mind to use iOS 10. version device.
In 9 it does not work.

ipa is for real devices
app is for simulators only

1 Like

Yes :smile:
with ipa it works fine.