• WebDriverAgent 踩坑记 at 2019年01月22日

    您好啊,我在往真机上 run webdriveragent 的时候,报这个错呢,求指导😩

    *** If you believe this error represents a bug, please attach the result bundle at /Users/wanghuan24/Library/Developer/Xcode/DerivedData/WebDriverAgent-akfdosudpqimrfewltpeoxnchjhe/Logs/Test/Test-WebDriverAgentRunner-2019.01.22_15-22-11-+0800.xcresult

    2019-01-22 15:22:27.691 xcodebuild[1721:47415] [MT] IDETestOperationsObserverDebug: 14.732 elapsed -- Testing started completed.
    2019-01-22 15:22:27.691 xcodebuild[1721:47415] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
    2019-01-22 15:22:27.691 xcodebuild[1721:47415] [MT] IDETestOperationsObserverDebug: 14.733 sec, +14.732 sec -- end
    2019-01-22 15:22:27.691 xcodebuild[1721:47415] Error Domain=com.apple.platform.iphoneos Code=-12 "Unable to launch com.apple.test.WebDriverAgentRunner-Runner" UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7fa9d93b4fd0 {Error Domain=DTXMessage Code=2 "Failed to deserialize message" UserInfo={NSLocalizedDescription=Failed to deserialize message, NSUnderlyingError=0x7fa9d99c4b00 {Error Domain=NSCocoaErrorDomain Code=4864 "value for key 'NS.objects' was of unexpected class 'NSException'. Allowed classes are '{(
    NSURL,
    NSData,
    NSDictionary,
    NSArray,
    NSString,
    NSAttributedString,
    NSNumber,
    NSValue,
    NSDate,
    NSSet,
    NSError,
    NSNull
    )}'." UserInfo={NSDebugDescription=value for key 'NS.objects' was of unexpected class 'NSException'. Allowed classes are '{(
    NSURL,
    NSData,
    NSDictionary,
    NSArray,
    NSString,
    NSAttributedString,
    NSNumber,
    NSValue,
    NSDate,
    NSSet,
    NSError,
    NSNull
    )}'.}}}}}
    2019-01-22 15:22:27.692 xcodebuild[1721:47415] Error Domain=IDETestOperationsObserverErrorDomain Code=4 "Failed to install or launch the test runner" UserInfo={NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the result bundle at /Users/wanghuan24/Library/Developer/Xcode/DerivedData/WebDriverAgent-akfdosudpqimrfewltpeoxnchjhe/Logs/Test/Test-WebDriverAgentRunner-2019.01.22_15-22-11-+0800.xcresult, NSLocalizedDescription=Failed to install or launch the test runner, NSUnderlyingError=0x7fa9d96c5960 {Error Domain=com.apple.platform.iphoneos Code=-12 "Unable to launch com.apple.test.WebDriverAgentRunner-Runner" UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7fa9d93b4fd0 {Error Domain=DTXMessage Code=2 "Failed to deserialize message" UserInfo={NSLocalizedDescription=Failed to deserialize message, NSUnderlyingError=0x7fa9d99c4b00 {Error Domain=NSCocoaErrorDomain Code=4864 "value for key 'NS.objects' was of unexpected class 'NSException'. Allowed classes are '{(
    NSURL,
    NSData,
    NSDictionary,
    NSArray,
    NSString,
    NSAttributedString,
    NSNumber,
    NSValue,
    NSDate,
    NSSet,
    NSError,
    NSNull
    )}'." UserInfo=0x7fa9d99d0380 (not displayed)}}}}}}

    Testing failed:
    WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.apple.test.WebDriverAgentRunner-Runner. (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.))))