首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用代码“65”和信号“null”退出的xcodebuild

使用代码“65”和信号“null”退出的xcodebuild
EN

Stack Overflow用户
提问于 2019-11-22 11:30:33
回答 1查看 3.1K关注 0票数 0

你好,我有问题,在启动ios真正的设备进行测试。

我的xcode版本: 11.2.1 (11B500) Appium版本: 1.13.0 (1.13.0.20190505.6)

这些是我的能力:

代码语言:javascript
复制
    deviceSerialNumber:         F71SVVQ2HG7F
[Xcode]         identifier:                 bfda036179b938524f01eff8c673de3388a07fcc
[Xcode]         deviceClass:                iPhone
[Xcode]         deviceName:                 iPhone 7
[Xcode]         deviceIdentifier:           bfda036179b938524f01eff8c673de3388a07fcc
[Xcode]         productVersion:             13.1.1
[Xcode]         buildVersion:               17A854
[Xcode]         deviceSoftwareVersion:      13.1.1 (17A854)
[Xcode]         deviceArchitecture:         arm64
[Xcode]         deviceTotalCapacity:        26495004672
[Xcode]         deviceAvailableCapacity:    9949319168
[Xcode]         deviceIsTransient:          NO
[Xcode]         ignored:                    NO
[Xcode]         deviceIsBusy:               NO
[Xcode]         deviceIsPaired:             YES
[Xcode]         deviceIsActivated:          YES
[Xcode]         deviceActivationState:      Activated
[Xcode]         isPasscodeLocked:           NO
[Xcode]         deviceType:                 
[Xcode]         supportedDeviceFamilies:    (
[Xcode]     1
[Xcode] )
[Xcode]         applications:              (null)
[Xcode]         provisioningProfiles:      (null)
[Xcode]         hasInternalSupport:        NO
[Xcode]         hasWritableSystem:         NO
[Xcode]         isSupportedOS:             YES
[Xcode]         bootArgs:                  (null)
[Xcode]         nextBootArgs:              (null)
[Xcode]         connected:                 YES
[Xcode]         isWirelessEnabled:         NO
[Xcode]         connectionType:            direct
[Xcode]         hostname:                  iPhone-7.local.
[Xcode]         bonjourServiceName:        d0:c5:f3:d7:01:46@fe80::d2c5:f3ff:fed7:146._apple-mobdev2._tcp.local.
[Xcode]         activeProxiedDevice:       (null)
[Xcode]         } (13.1.1 (17A854))

这说明xcode需要配置配置文件,而我在xode中设置了证书和配置文件.

代码语言:javascript
复制
[Xcode] Testing failed:
[Xcode]     "WebDriverAgentRunner" requires a provisioning profile. Select a provisioning profile in the Signing & Capabilities editor.
[Xcode]     No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "BNL4VQ2576" with a private key was found.
[Xcode]     WebDriverAgentRunner:
[Xcode]         WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))




[Xcode] ** TEST EXECUTE FAILED **
[Xcode] 
[Xcode] 
[Xcode] Testing started on 'iPhone 7'
[Xcode] 
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: '/usr/local/bin/carthage'
[XCUITest] Killing running processes 'xcodebuild.*bfda036179b938524f01eff8c673de3388a07fcc, iproxy 8100' for the device bfda036179b938524f01eff8c673de3388a07fcc...
[XCUITest] 'pgrep -nif xcodebuild.*bfda036179b938524f01eff8c673de3388a07fcc' didn't detect any matching processes. Return code: 1

这说明文件夹不存在。我手动打开目录,那里没有文件夹。我不知道怎么弄到那个文件夹。

代码语言:javascript
复制
[Xcode] 2019-11-22 16:17:12.722 xcodebuild[37042:259128] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/ahmsam/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fdfc6b5e4c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
EN

回答 1

Stack Overflow用户

发布于 2019-11-22 12:01:12

您需要通过在com.companyName.WebDriverAgentRunner

  • open中执行完整的手动配置来设置WDA (如果您跳过任何步骤,WDA将无法工作)使用您在Xcode /path/where/installed/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

  • Project -> Build

中添加的自定义/path/where/installed/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

  • 来更新产品包标识符。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58993394

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档