无法从应用程序提取Info.plist:Plist文件不存在:

时间:2019-05-22 09:37:14

标签: java ios macos selenium-webdriver appium

在Mac上使用Appium的Mac-Xcode-Selenium-Java-实践的Downlord UI Catlog应用程序 低于

  

遇到内部错误运行命令:错误:无法从应用程序中提取Info.plist:Plist文件不存在:'/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);
}}

1 个答案:

答案 0 :(得分:0)

以下可能是导致此错误的原因:

  1. .app实际上不是.app文件,而是.ipa
  2. 确保//Users//mehul//Desktop//UICatalog.app是有效的directory