ios - Error: Command failed: /bin/sh -c ideviceinstaller -u -
appium version 1.4.13 xcode version 7.2 when starting code, taking error in log. ideviceinstaller instaled. me problem.
error log: error: failed start appium session, err was: error: command failed: /bin/sh -c ideviceinstaller -u 9b2e5be1-c31b-4484-b14c-73e2554f7887 -i /users/ark/library/developer/xcode/deriveddata/ark-bwydkfpusazddvfbasvrcjailpjv/build/products/qa-iphoneos/ark.app
java code:
import io.appium.java_client.appiumdriver; import io.appium.java_client.mobileelement; import io.appium.java_client.ios.iosdriver; import io.appium.java_client.remote.mobilecapabilitytype; import org.junit.before; import org.openqa.selenium.webdriver; import org.openqa.selenium.remote.desiredcapabilities; import org.openqa.selenium.remote.remotewebdriver; import java.io.file; import java.net.malformedurlexception; import java.net.url; import java.util.concurrent.timeunit; /** * created betbull on 1/29/16. */ public class runing { public static iosdriver driver; public static appiumdriver wd; public static void main(string[] args) throws malformedurlexception { desiredcapabilities capabilities = new desiredcapabilities(); capabilities.setcapability("platformname", "ios"); capabilities.setcapability("platformversion", "9.2"); capabilities.setcapability("devicename", "iphone6"); capabilities.setcapability("app", "/users/ark/library/developer/xcode/deriveddata/ark-bwydkfpusazddvfbasvrcjailpjv/build/products/qa-iphoneos/ark.app"); driver= new iosdriver(new url("http://127.0.0.1:4723/wd/hub"), capabilities); wd.manage().timeouts().implicitlywait(60, timeunit.seconds); } }
i believe need install ideviceinstaller prior using appium perform automation tests on ios. quoting here following should help. try running on terminal :
ruby -e "$(curl -fssl https://raw.githubusercontent.com/homebrew/install/master/install)" < /dev/null 2> /dev/null
// wait command finish.
run: brew install ideviceinstaller
Comments
Post a Comment