当前位置:   article > 正文

Appium-IOS启动报错_the desired capabilities must include either an ap

the desired capabilities must include either an app or a bundleid for 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
 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/333907
推荐阅读
相关标签
  

闽ICP备14008679号