简体   繁体   中英

Could not extract Info.plist from application: Plist file doesn't exist:

ON Mac Using Appium - Xcode - Selenium - java - downlord UI catlog app for practice appium error below

Encountered internal error running command: Error: Could not extract Info.plist from application: Plist file doesn't exist: '/Users/mehul/Desktop/UICatalog.app/Info.plist'

public class base
{
    public static void main(String[] args) throws MalformedURLException {


        DesiredCapabilities d = new DesiredCapabilities();
        d.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 6");
        d.setCapability(MobileCapabilityType.PLATFORM_NAME, "IOS");
        d.setCapability(MobileCapabilityType.PLATFORM_VERSION, "12.2");
        d.setCapability(MobileCapabilityType.AUTOMATION_NAME, AutomationName.IOS_XCUI_TEST);
        d.setCapability(MobileCapabilityType.APP, "//Users//mehul//Desktop//UICatalog.app");

        IOSDriver<IOSElement> driver = new IOSDriver<>(new URL("http://127.0.0.1:4723/wd/hub"),d);
}}

Following could be the cause of this error :

  1. The .app is not actually a .app file but an .ipa instead.
  2. make sure that the //Users//mehul//Desktop//UICatalog.app is a valid directory .

遇到同样的问题,重启appium服务器帮我解决了

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM