Appium-IOS启动报错

An unknown server-side error occurred while processing the command. Original error: The desired capabilities must include either an app or a bundleId for iOS
修改bundleId

An unknown server-side error occurred while processing the command. Original error: Xcode 9.2 has a maximum SDK version of 11.2. It does not support iOS version 11.4
升级Xcode

An unknown server-side error occurred while processing the command. Original error: simctl error running 'list': dyld: Symbol not found: _SimDeviceBootKeyDisabledJobs Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl Expected in: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator in /Applications/Xcode.app/Contents/Developer/usr/bin/simct
刚安装上Xcode要先起一遍,需要安装一个组件,安装完再启动appium

An unknown server-side error occurred while processing the command. Original error: Xcode 9.2 has a maximum SDK version of 11.2. It does not support iOS version 11.4
Xcode都升级好了,但是appiumdesktop没有重启

An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
需要先编译一边WebDriverAgent,在手机上安装一个WebDriverAgent才能跑

Code Signing Error: Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code Signing Error: Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 11.4'
Code Signing Error: Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code Signing Error: Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 11.4'
Code Signing Error: Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code Signing Error: Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 11.4'
Code Signing Error: Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code Signing Error: Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 11.4'
Code Signing Error: Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 11.4'
Code Signing Error: Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 11.4'
这个是刚开始没有设置WebDriverAgentRunner的签名,设置完就可以了


Exception in thread "main" org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unhandled endpoint: /session/10A20054-3076-48AC-B5A0-9BF4911DEF10/wda/screen -- http://localhost:8100/ with parameters {    
    wildcards =     (    
        "session/10A20054-3076-48AC-B5A0-9BF4911DEF10/wda/screen"    
    );    
} (WARNING: The server did not provide any stacktrace information)    
Command duration or timeout: 0 milliseconds    
Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:24:21.231Z'    
System info: host: 'cnsha-20857-mac.local', ip: 'fe80:0:0:0:188b:8544:b445:4d3%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.4', java.version: '1.8.0_161'    
Driver info: io.appium.java_client.ios.IOSDriver    
Capabilities {automationName: XCUITest, browserName: , bundleId: com.denachina.pickle, connectHardwareKeyboard: true, databaseEnabled: false, deviceName: iPhone 8, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 600, platform: MAC, platformName: iOS, platformVersion: 11.4, takesScreenshot: true, udid: 84037c8eedc0544244d265f3fa3..., webStorageEnabled: false, xcodeOrgId: 52L8S4EZRD, xcodeSigningId: iPhone Developer}    
Session ID: 3d934d1b-fb2a-4d0d-bba2-36a0d0756b42    
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
    at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)
    at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)
    at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
    at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:231)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
    at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:46)
    at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
    at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
    at io.appium.java_client.HasSessionDetails.getSessionDetails(HasSessionDetails.java:39)
    at io.appium.java_client.HasSessionDetails.getSessionDetail(HasSessionDetails.java:56)
    at io.appium.java_client.HasSessionDetails.getPlatformName(HasSessionDetails.java:65)
    at io.appium.java_client.internal.JsonToMobileElementConverter.<init>(JsonToMobileElementConverter.java:49)
    at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:89)
    at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:94)
    at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:95)
    at appium_test.AppiumDemo.main(AppiumDemo.java:30)
这种情况是用appium-desktop工具可以起来应用,但是用脚本跑的话跑不起来,会报这个错误    
需要配置并编译appium-desktop本身的WebDriverAgent,appium-desktop本身的WebDriverAgent路径在:    
    /Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: appium-python-client安装包可以通过pip命令进行安装,具体步骤如下: 1. 打开命令行工具(如Windows下的cmd或者Linux下的终端),输入以下命令安装pip: ``` sudo apt-get install python-pip ``` 2. 安装appium-python-client,输入以下命令: ``` pip install Appium-Python-Client ``` 3. 等待安装完成即可使用appium-python-client。 ### 回答2: appium-python-client是一个用于进行移动应用测试的Python库。它作为Appium测试框架的一个客户端,提供了许多功能和方法来编写和执行测试脚本。 要安装appium-python-client,需要先确保已经安装了Python环境。以下是安装appium-python-client的步骤: 1. 打开终端或命令提示符,并进入到所需的Python项目目录。 2. 使用pip命令安装appium-python-client。在终端或命令提示符中输入以下命令: pip install Appium-Python-Client 在执行命令后,pip会从Python Package Index(PyPI)上下载并安装appium-python-client。 安装完成后,您可以在Python脚本中导入appium-python-client并开始编写测试代码。 例如,您可以使用以下命令导入appium-python-client库: ```python from appium import webdriver ``` 然后,您可以使用appium-python-client提供的方法来启动Appium服务器、初始化移动设备连接、定位元素,并执行各种移动应用测试操作。 总结: appium-python-client是一个用于进行移动应用测试的Python库,可以通过pip命令进行安装。安装完成后,您可以在Python脚本中导入该库并使用其提供的方法来编写和执行移动应用测试脚本。 ### 回答3: appium-python-client是一个用于与Appium服务器进行通信的Python库。要安装appium-python-client,您可以按照以下步骤进行操作: 1. 确保您的电脑已经安装了Python解释器。您可以通过在命令行中输入“python --version”来验证Python是否已经安装。 2. 打开命令行或终端,并输入以下命令来安装appium-python-client: ``` pip install Appium-Python-Client ``` 注意:您需要确保您的电脑已经安装了pip,它是一个用于安装Python库的包管理工具。如果您的电脑上没有安装pip,您可以通过以下命令来安装它: ``` python -m ensurepip --upgrade ``` 3. 安装完成后,您可以在Python脚本中导入appium-python-client模块并使用它来与Appium服务器进行通信。例如,您可以使用以下代码示例来连接到Appium服务器: ```python from appium import webdriver desired_caps = { 'platformName': 'Android', 'platformVersion': '9', 'deviceName': 'Android Emulator', 'app': 'path/to/your/app.apk' } driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) ``` 这将创建一个WebDriver实例,用于控制连接到Appium服务器的设备。您可以使用WebDriver实例来执行各种测试操作,例如查找元素、发送输入等。 通过按照以上步骤安装appium-python-client,您就可以在Python中使用它来创建和执行Appium测试。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值