Xcode Simulator应用程序打开3次并崩溃

时间:2018-06-28 14:37:55

标签: appium-ios

我有这个能力 xcode 9

appium server 1.8.1
    {
  "platformName": "iOS",
  "platformVersion": "11.3",
  "deviceName": "iPhone 8 Plus",
  "app": "/Users/faroukrahem/Downloads/Amazon.ipa",
  "udid": "913FD18F-FF62-425D-B8B3-DB22CDE8DD50",
  "automationName": "XCUITest",
  "xcodeOrgId": "U2CURAR7S5",
  "xcodeSigningId": "iPhone Developer",
  "noReset": true
}

1 个答案:

答案 0 :(得分:-2)

"xcodeOrgId": "U2CURAR7S5",
  "xcodeSigningId": "iPhone Developer",

Orgid & SiginID to be specified in Xcode config file::

Webdriver agent need to be successfully running on device Try to configure Webdriver agent and Developer ID ::

打开现有的WebDriver代理(双击WebDriverAgent.xcodeproj)

在Xcode上,依次选择File> New> File,然后会弹出类似这样的内容

选择OSX->。其他->选择配置设置文件。

将以下内容粘贴到新创建的文件中。

DEVELOPMENT_TEAM = xxxxxxxxx

CODE_SIGN_IDENTITY = iPhone开发人员

开发团队是您的开发人员应该能够提供的团队ID。不要更改CODE_SIGN_IDENTITY。

在device.propoerties文件中添加此

xcodeConfigFile = / usr / local / lib / node_modules / appium / node_modules / appium-xcuitest-driver / WebDriverAgent / Config.xcconfig

在ConfigCapa.java文件中添加此

capabilities.setCapability(“ xcodeConfigFile”,emulatorProp.getProperty(“ xcodeConfigFile”)));

打开终端进入

$ cd / usr / local / lib / node_modules / appium / node_modules / appium-xcuitest-driver / WebDriverAgent /

$ mkdir -p资源/WebDriverAgent.bundle

sh ./Scripts/bootstrap.sh –d

转到终端类型

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination'id = DeviceID'test以上命令在生成输出中的最后一行应为“侦听USB”。那就准备好了!

brew安装libimobiledevice –HEAD

要运行appium类型appium&

要查找版本类型appium — v