• FastMonkey iOS11 踩坑记 at 2017年10月20日

    XCTestWDMonkey.swift 这个文件在哪 找不到了...

  • 我把 Carthage 文件夹删除在执行的还是不行 Module compiled with Swift 3.1 cannot be imported in Swift 3.2

  • 还是一样。。。

  • 对 我再从头试下一遍

  • 恩 reset 后重写配置 .h 文件 证书等后 还是一样。

  • 那天就是过了 reset 后还是一样~

  • 更新了还是不行 报一样的错

  • 尴尬 报这个错误
    Module compiled with Swift 3.1 cannot be imported in Swift 3.2
    我已经 carthage update 还是不行

  • 赞 马上就试

  • 多谢 不过再安装一个 xcode8 后(终端已转到 xcodebuild8)跑 monkey 报错

    Tests -emit-module-path /Users/jackyoung/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Build/Intermediates/XCTestWD.build/Debug-iphoneos/XCTestWDUITests.build/Objects-normal/arm64/XCTestWDRunner~partial.swiftmodule -emit-dependencies-path /Users/jackyoung/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Build/Intermediates/XCTestWD.build/Debug-iphoneos/XCTestWDUITests.build/Objects-normal/arm64/XCTestWDRunner.d -emit-reference-dependencies-path /Users/jackyoung/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Build/Intermediates/XCTestWD.build/Debug-iphoneos/XCTestWDUITests.build/Objects-normal/arm64/XCTestWDRunner.swiftdeps -o /Users/jackyoung/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Build/Intermediates/XCTestWD.build/Debug-iphoneos/XCTestWDUITests.build/Objects-normal/arm64/XCTestWDRunner.o
    /Users/jackyoung/Documents/Monkey/Fastmonkey/XCTestWD-master/XCTestWD/XCTestWDUITests/XCTestWDRunner.swift:15:17: error: use of undeclared type 'XCTestWDMonkey'
        var monkey: XCTestWDMonkey?
                    ^~~~~~~~~~~~~~
    /Users/jackyoung/Documents/Monkey/Fastmonkey/XCTestWD-master/XCTestWD/XCTestWDUITests/XCTestWDRunner.swift:34:27: error: use of unresolved identifier 'XCTestWDMonkey'
                self.monkey = XCTestWDMonkey()
                              ^~~~~~~~~~~~~~
    /Users/jackyoung/Documents/Monkey/Fastmonkey/XCTestWD-master/XCTestWD/XCTestWDUITests/server/XCTestWDServer.swift:12:14: note: did you mean 'XCTestWDServer'?
    public class XCTestWDServer {
                 ^
    /Users/jackyoung/Documents/Monkey/Fastmonkey/XCTestWD-master/XCTestWD/XCTestWDUITests/XCTestWDRunner.swift:12:7: note: did you mean 'XCTextWDRunner'?
    class XCTextWDRunner: XCTestCase {
          ^
    XCTest.XCTestToolKey:2:12: note: did you mean 'XCTestToolKey'?
    public let XCTestToolKey: String
               ^
    /Users/jackyoung/Documents/Monkey/Fastmonkey/XCTestWD-master/XCTestWD/XCTestWDUITests/server/models/XCTestWDReponse.swift:13:16: note: did you mean 'XCTestWDResponse'?
    internal class XCTestWDResponse {
                   ^
    
    CompileSwift normal arm64 /Users/jackyoung/Documents/Monkey/Fastmonkey/XCTestWD-master/XCTestWD/XCTestWDUITests/server/models/XCTestWDErrors.swift
        cd /Users/jackyoung/Documents/Monkey/Fastmonkey/XCTestWD-master/XCTestWD
    
    
    
    
    2017-09-25 21:54:51.572 xcodebuild[51273:4449473] Error Domain=IDETestOperationsObserverErrorDomain Code=4 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/jackyoung/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Logs/Test/0328CE33-5065-4FC7-A363-733A1989A4F8/Session-XCTestWDUITests-2017-09-25_215442-aWwF1c.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/jackyoung/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Logs/Test/0328CE33-5065-4FC7-A363-733A1989A4F8/Session-XCTestWDUITests-2017-09-25_215442-aWwF1c.log}
    
    Testing failed:
        Use of undeclared type 'XCTestWDMonkey'
        Use of unresolved identifier 'XCTestWDMonkey'
    ** TEST FAILED **
    
    
    The following build commands failed:
        CompileSwift normal arm64 /Users/jackyoung/Documents/Monkey/Fastmonkey/XCTestWD-master/XCTestWD/XCTestWDUITests/XCTestWDRunner.swift
        CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
    (2 failures)
    
  • 升级到 xcode9 后 一直报这个错

    /Users/jackyoung/Documents/Monkey/Fastmonkey/XCTestWD-master/XCTestWD/XCTestWDUITests/PrivateHeaders/XCUIApplication.h:37:1: error: type of property 'unsigned long long' in class extension does not match property type in primary class
    
    1 error generated.
    <unknown>:0: error: failed to emit precompiled header '/Users/jackyoung/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Build/Intermediates.noindex/PrecompiledHeaders/XCTestWDUITests-Bridging-Header-swift_HD8S09YT7455-clang_3F4FDQP5SKX2L.pch' for bridging header '/Users/jackyoung/Documents/Monkey/Fastmonkey/XCTestWD-master/XCTestWD/XCTestWDUITests/XCTestWDUITests-Bridging-Header.h'
    
    

    是暂时不支持 xcode9 下跑吗

  • 使用 sudo 执行了 npm i macaca_ios -g 还是提示无权限

    error: Unable to create directory: /usr/local/lib/node_modules/macaca-ios/node_modules/devicelog/build/devicelog.build/Release/devicelog.build (Permission denied)
    

    【求救】

  • 尴尬 看到了。。。。 装完了可以 run 了 厉害厉害 不过这个参数制定在哪 比如多少次 还有间隔

  • 评论都看了 其中出现的错误也都改了 然后 run 的时候 报这个 不知道怎么

    export XCODE_APP_SUPPORT_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode
        export XCODE_PRODUCT_BUILD_VERSION=8E3004b
        export XCODE_VERSION_ACTUAL=0833
        export XCODE_VERSION_MAJOR=0800
        export XCODE_VERSION_MINOR=0830
        export XCTESTWD_PORT=8001
        export XPCSERVICES_FOLDER_PATH=XCTestWDUITests.xctest/XPCServices
        export YACC=yacc
        export arch=armv7
    export YACC=yacc
        export arch=armv7
        export diagnostic_message_length=116
        export variant=normal
        /bin/sh -c /Users/xxxxxxx/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Build/Intermediates/XCTestWD.build/Debug-iphoneos/XCTestWDUITests.build/Script-7FA43F311F0CB57400FB2332.sh
    d2af20af5674f416a6ea33edc144120752af515e
    /Users/xxxxxxxxx/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Build/Intermediates/XCTestWD.build/Debug-iphoneos/XCTestWDUITests.build/Script-7FA43F311F0CB57400FB2332.sh: line 12: ideviceinstaller: command not found
    Command /bin/sh failed with exit code 127
    
    2017-08-25 18:15:54.733 xcodebuild[18119:1717957] Error Domain=IDETestOperationsObserverErrorDomain Code=4 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/jxxxxxx/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Logs/Test/F063AE42-B5A6-4694-A98E-6241C3848607/Session-XCTestWDUITests-2017-08-25_181552-bw8Dwx.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/xxxxxxx/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Logs/Test/F063AE42-B5A6-4694-A98E-6241C3848607/Session-XCTestWDUITests-2017-08-25_181552-bw8Dwx.log}
    
    Testing failed:
        Command /bin/sh failed with exit code 127
    ** TEST FAILED **
    
    
    The following build commands failed:
        PhaseScriptExecution Run\ Script /Usersx'x'x'x'x'x'x'xLibrary/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Build/Intermediates/XCTestWD.build/Debug-iphoneos/XCTestWDUITests.build/Script-7FA43F311F0CB57400FB2332.sh
    (1 failure)
    
    
  • 2017-08-25 18:03:52.821 xcodebuild[17995:1706636] Error Domain=IDETestOperationsObserverErrorDomain Code=4 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/xxxxxxxx/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Logs/Test/932A09AF-A07A-45B2-BBDB-42CAE9A7F4C5/Session-XCTestWDUITests-2017-08-25_180350-vRucrT.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/xxxxxxxx/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Logs/Test/932A09AF-A07A-45B2-BBDB-42CAE9A7F4C5/Session-XCTestWDUITests-2017-08-25_180350-vRucrT.log}
    
    Testing failed:
        Command /bin/sh failed with exit code 127
    ** TEST FAILED **
    
    
    The following build commands failed:
        PhaseScriptExecution Run\ Script /Users/xxxxxxxx/Library/Developer/Xcode/DerivedData/XCTestWD-ecleedtsdbxztvfcvaqqgwnsgqxl/Build/Intermediates/XCTestWD.build/Debug-iphoneos/XCTestWDUITests.build/Script-7FA43F311F0CB57400FB2332.sh
    

    请问这个错误怎么处理 @zhangzhao_lenovo

  • 这个要怎么才能 集成到 jenkins pmd 插件解析 我就看报告 没有 xml 格式的文件啊 只有 csv json 和 txt

  • SwiftMonkey :iOS 上的 monkey at 2017年02月24日

    这个跳到第三方应用或者到 home 后 怎么搞

  • #11 楼 @iriszhang 这个要怎么升级呢 直接用 npm 下载的 appium 没有对这个进行操作过 但是不知道怎么升级 直接 npm unisntall xcuitest-driver 的话 appium 也没有了。。。

  • 真机 ios9 可以跑通 但是同样换到 ios10 编译 wda 时 老是报这个错误 :
    2016-12-29 20:07:23.862204 XCTRunner[1195:363094] Running tests...
    2016-12-29 20:07:24.716526 XCTRunner[1195:363094] Continuing to run tests in the background with task ID 1
    Test Suite 'All tests' started at 2016-12-29 20:07:25.505
    Test Suite 'WebDriverAgentRunner.xctest' started at 2016-12-29 20:07:25.506
    Test Suite 'UITestingUITests' started at 2016-12-29 20:07:25.506
    Test Case '-[UITestingUITests testRunner]' started.
    t = 0.00s Start Test at 2016-12-29 20:07:25.509
    t = 0.00s Set Up
    2016-12-29 20:07:25.512319 XCTRunner[1195:363166] [User Defaults] Failed to write value for key AutomationDisableFauxCollectionCells in CFPrefsPlistSource<0x1740f6980> (Domain: com.apple.Accessibility, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null)): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access, switching to read-only
    2016-12-29 20:07:25.513151 XCTRunner[1195:363094] Built at Dec 27 2016 18:03:35
    2016-12-29 20:07:25.533965 XCTRunner[1195:363094] ServerURLHere->http://10.2.215.58:8100<-ServerURLHere
    2016-12-29 20:07:25.534737 XCTRunner[1195:363094] Listening on USB

  • 请问 [debug] [XCUITest] Waiting for WebDriverAgent server to finish loading... 这个问题是怎么解决的 。。

  • @iriszhang @Lihuazhang 搞定了没有 team 不过又回到了
    [debug] [XCUITest] Waiting for WebDriverAgent server to finish loading... 这个问题上 https://testerhome.com/topics/6774

  • xcode 单独编译 Webdriveragent 就报这个错误
    2016-12-29 11:49:30.951467 XCTRunner[987:290341] Running tests...
    2016-12-29 11:49:31.055474 XCTRunner[987:290341] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
    2016-12-29 11:49:31.055804 XCTRunner[987:290341] (dlopen_preflight(/var/containers/Bundle/Application/E0111AAF-DDA4-4AB4-888B-78792ED41D5B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/Peertalk.framework/Peertalk
    Referenced from: /private/var/containers/Bundle/Application/E0111AAF-DDA4-4AB4-888B-78792ED41D5B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
    Reason: no suitable image found. Did find:
    /private/var/containers/Bundle/Application/E0111AAF-DDA4-4AB4-888B-78792ED41D5B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/Peertalk.framework/Peertalk: required code signature missing for '/private/var/containers/Bundle/Application/E0111AAF-DDA4-4AB4-888B-78792ED41D5B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/Peertalk.framework/Peertalk'
    )

  • #6 楼 @iriszhang @Lihuazhang 这个搞定了 但是又出现 Webdriveragent 的错误

    
    [Xcode] 2016-12-29 11:43:10.038 XCTRunner[596:89986] Running tests...
    2016-12-29 11:43:10.082 XCTRunner[596:89986] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
    2016-12-29 11:43:10.082 XCTRunner[596:89986] (dlopen_preflight(/var/containers/Bundle/Application/5C49AB64-47A9-4DD5-8801-8715EB8B0198/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/Peertalk.framework/Peertalk
      Referenced from: /private/var/containers/Bundle/Application/5C49AB64-47A9-4DD5-8801-8715EB8B0198/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
      Reason: no suitable image found.  Did find:
        /private/var/containers/Bundle/Application/5C49AB64-47A9-4DD5-8801-8715EB8B0198/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/Peertalk.framework/Peertalk: mmap() error 1 at address=0x102198000, size=0x00010000 segment=__TEXT in Segment::map() mapping /private/var/containers/Bundle/Application/5C49AB64-47A9-4DD5-8801-8715EB8B0198/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/Peertalk.framework/Peertalk)
    
    [XCUITest] xcodebuild exited with code '65' and signal 'null'
    [XCUITest] Error: xcodebuild failed with code 65
        at SubProcess.<anonymous> (../../lib/webdriveragent.js:355:25)
        at emitTwo (events.js:106:13)
    
    
  • #3 楼 @Lihuazhang 需要 手机越狱吗?!