Получение 'NSException' при сборке xcode для агента Web Driver. Невозможно запустить веб-драйвер для IOS - PullRequest
0 голосов
/ 12 февраля 2020

Я неоднократно сталкиваюсь с одной и той же ошибкой при попытке запустить WebDriverAgent из Xcode Build.
Я пробовал разные версии Appium.
Текущая версия Appium = 1.13.0
Текущая версия Xcode = 11.3.1
Текущая версия IOS = 10.3
Вот команда, которую я использовал:

xcodebuild -project WebDriverAgent.xcodeproj -scheme  WebDriverAgentRunner -destination 'id= <udid>' test

Присоединение журналов сборки для справки.

Действительно ценим помощь.

HKs-MacBook-Air:WebDriverAgent iosautomation$ xcodebuild -project WebDriverAgent.xcodeproj -scheme  WebDriverAgentRunner -destination 'id=6405cda4a0e453f90683e87b4b2dc9a65c50f9ed' test
2020-02-12 15:08:55.969 xcodebuild[45494:1814510]  DTDeviceKit: deviceType from 6405cda4a0e453f90683e87b4b2dc9a65c50f9ed was NULL
2020-02-12 15:08:56.041 xcodebuild[45494:1814517]  DTDeviceKit: deviceType from 6405cda4a0e453f90683e87b4b2dc9a65c50f9ed was NULL
note: Using new build system
note: Planning build
note: Using build description from disk
Testing started on 'iPhone'
2020-02-12 15:08:57.201 xcodebuild[45494:1814579]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/iosautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2020.02.12_15-08-56-+0530.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-1F80A448-A77F-468B-8A53-74ED0D2BC697/WebDriverAgentRunner-BB86E1D9-4BAA-43F5-B2F2-51AEEC79797D/Session-WebDriverAgentRunner-2020-02-12_150857-gWnYZR.log
2020-02-12 15:08:57.202 xcodebuild[45494:1814508] [MT] IDETestOperationsObserverDebug: (294DD418-C6BE-4C7C-B91F-EBBDD8BA9BA1) Beginning test session WebDriverAgentRunner-294DD418-C6BE-4C7C-B91F-EBBDD8BA9BA1 at 2020-02-12 15:08:57.202 with Xcode 11C504 on target ?<DVTiOSDevice (0x7fccbb34a480), iPhone, iPhone, 10.3.2 (14F89), 6405cda4a0e453f90683e87b4b2dc9a65c50f9ed> {
        deviceSerialNumber:         DX3RJCGEFRC4
        identifier:                 6405cda4a0e453f90683e87b4b2dc9a65c50f9ed
        deviceClass:                iPhone
        deviceName:                 iPhone
        deviceIdentifier:           6405cda4a0e453f90683e87b4b2dc9a65c50f9ed
        productVersion:             10.3.2
        buildVersion:               14F89
        deviceSoftwareVersion:      10.3.2 (14F89)
        deviceArchitecture:         arm64
        deviceTotalCapacity:        12406976512
        deviceAvailableCapacity:    6145269760
        deviceIsTransient:          NO
        ignored:                    NO
        deviceIsBusy:               NO
        deviceIsPaired:             YES
        deviceIsActivated:          YES
        deviceActivationState:      Activated
        isPasscodeLocked:           NO
        deviceType:                 <DVTDeviceType:0x7fccbb0882c0 Xcode.DeviceType.iPhone>
        supportedDeviceFamilies:    (
    1
)
        applications:              (null)
        provisioningProfiles:      (null)
        hasInternalSupport:        NO
        hasWritableSystem:         NO
        isSupportedOS:             YES
        bootArgs:                  (null)
        nextBootArgs:              (null)
        connected:                 YES
        isWirelessEnabled:         NO
        connectionType:            direct
        hostname:                  (null)
        bonjourServiceName:        a4:f1:e8:e2:8b:96@fe80::a6f1:e8ff:fee2:8b96._apple-mobdev2._tcp.local.
        activeProxiedDevice:       (null)
        } (10.3.2 (14F89))

2020-02-12 15:08:57.538 xcodebuild[45494:1814508] [MT] IDETestOperationsObserverDebug: (294DD418-C6BE-4C7C-B91F-EBBDD8BA9BA1) Finished requesting crash reports. Continuing with testing.


*** If you believe this error represents a bug, please attach the result bundle at /Users/iosautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2020.02.12_15-08-56-+0530.xcresult

2020-02-12 15:09:07.465 xcodebuild[45494:1814508] [MT] IDETestOperationsObserverDebug: 10.279 elapsed -- Testing started completed.
2020-02-12 15:09:07.465 xcodebuild[45494:1814508] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2020-02-12 15:09:07.465 xcodebuild[45494:1814508] [MT] IDETestOperationsObserverDebug: 10.279 sec, +10.279 sec -- end
2020-02-12 15:09:07.466 xcodebuild[45494:1814508] Error Domain=com.apple.platform.iphoneos Code=-12 "Unable to launch com.pragya123.WebDriverAgentRunner.xctrunner" UserInfo={NSLocalizedDescription=Unable to launch com.pragya123.WebDriverAgentRunner.xctrunner, NSUnderlyingError=0x7fccbaeb9a40 {Error Domain=DTXMessage Code=2 "Failed to deserialize message" UserInfo={NSLocalizedDescription=Failed to deserialize message, NSUnderlyingError=0x7fccbb18a0c0 {Error Domain=NSCocoaErrorDomain Code=4864 "value for key 'NS.objects' was of unexpected class 'NSException'. Allowed classes are '{(
    NSNumber,
    NSValue,
    NSNull,
    NSURL,
    NSData,
    NSString,
    NSError,
    NSSet,
    NSDictionary,
    NSArray,
    NSDate,
    NSAttributedString
)}'." UserInfo={NSDebugDescription=value for key 'NS.objects' was of unexpected class 'NSException'. Allowed classes are '{(
    NSNumber,
    NSValue,
    NSNull,
    NSURL,
    NSData,
    NSString,
    NSError,
    NSSet,
    NSDictionary,
    NSArray,
    NSDate,
    NSAttributedString
)}'.}}}}}

Test session results, code coverage, and logs:
    /Users/iosautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2020.02.12_15-08-56-+0530.xcresult

Testing failed:
    WebDriverAgentRunner:
        WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.pragya123.WebDriverAgentRunner.xctrunner. (Underlying error: Failed to deserialize message. (Underlying error: The data couldn’t be read because it isn’t in the correct format. The data isn’t in the correct format. value for key 'NS.objects' was of unexpected class 'NSException'. Allowed classes are '{(
    NSNumber,
    NSValue,
    NSNull,
    NSURL,
    NSData,
    NSString,
    NSError,
    NSSet,
    NSDictionary,
    NSArray,
    NSDate,
    NSAttributedString
)}'.))))

** TEST FAILED **
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...