共计 1806 个字符,预计需要花费 5 分钟才能阅读完成。
本章节次要解说 iOS 自动化真机配置以及在 iOS 真机执行自动化时常见问题与解决办法。
真机应用的 Capability
与模拟器不同,真机测试须要如下的 Capability
形式一:设置 App 门路,启动 App(主动装置 App)
{
"app": "/Users/seveniruby/Library/Developer/Xcode/DerivedData/UICatalog-ftyzdbgapjmxxobezrnrxsshpdqh/Build/Products/Debug-iphoneos/UICatalog.app",
"automationName": "XCUITest",
"platformName": "ios",
"xcodeOrgId": "xxxxxx",
"xcodeSigningId": "iPhone Developer",
"udid": "9df22446af15919c494c85b4c1c8b00eaa3a5bd0"
}
形式二:依据 App 包名启动 App
{
"platformName": "ios",
"bundleId": "com.example.apple-samplecode.UICatalog",
"automationName": "XCUITest",
"deviceName": "iPhone",
"udid": "auto",
"xcodeOrgId": "xxxxx",
"xcodeSigningId": "iPhone Developer"
}
应用 Appium Desktop 验证环境
以上步骤实现后,呈现下图示意真机环境配置胜利
常见问题
问题一
问题二
问题三
- 解决办法:重启手机或者拔掉 IOS 数据线,从新连贯电脑
问题四
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "L62JHCGMQW" with a private key was found. (in target 'WebDriverAgentLib' from project 'WebDriverAgent')
error: No profiles for 'com.facebook.WebDriverAgentRunner.xctrunner' were found: Xcode couldn't find any iOS App Development provisioning profiles matching'com.facebook.WebDriverAgentRunner.xctrunner'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target'WebDriverAgentRunner'from project'WebDriverAgent')
问题五
Assertions: System: Early unexpected exit, operation never finished bootstrapping - no restart will be
attempted. (Underlying Error: The test runner exited with code 74 before checking in. If you believe this
error represents a bug, please attach the result bundle at
/Users/dzkair/Library/Developer/Xcode/DerivedData/WebDriverAgent-
alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2020.11.26_10-47-38-+0800.xcresult)
- 解决办法:从新插拔手机即可
常见问题给大家总结了这些,如果大家有遇到其余的问题也能够在下方留言哦~
正文完