dryark / controlfloor

System for controlling devices remotely
Other
84 stars 27 forks source link

Notified control floor of 'wda stop'; uuid=***265d #31

Closed man4567890 closed 3 years ago

man4567890 commented 3 years ago

Hi @nanoscopic Me again :-), the next problem that I have, on the Mac Mini, the make wda is successful, I Think

......
CodeSign /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/Frameworks/XCTAutomationSupport.framework (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
    cd /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent
    export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

    Signing Identity:     "xxxxxxxxxxxxxxxx"
    Provisioning Profile: "iOS Team Provisioning Profile: *"
                          (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)

    /usr/bin/codesign --force --sign 067A3F1A8DFA66CCD68483EF5B9B2E452E371BA5 --timestamp\=none --preserve-metadata\=identifier,entitlements,flags /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/Frameworks/XCTAutomationSupport.framework
/Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/Frameworks/XCTAutomationSupport.framework: replacing existing signature

CodeSign /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
    cd /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent
    export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

    Signing Identity:     "xxxxxxxxxxxxxxxx"
    Provisioning Profile: "iOS Team Provisioning Profile: *"
                          (xxxxxxxxxxxxxxxxxxxxxx)

    /usr/bin/codesign --force --sign 067A3F1A8DFA66CCD68483EF5B9B2E452E371BA5 --entitlements /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent --timestamp\=none /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest

RegisterExecutionPolicyException /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
    cd /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent
    builtin-RegisterExecutionPolicyException /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest

Touch /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
    cd /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent
    /usr/bin/touch -c /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest

CodeSign /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
    cd /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent
    export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

    Signing Identity:     "xxxxxxxxxxxxxxx"
    Provisioning Profile: "iOS Team Provisioning Profile: *"
                          (xxxxxxxxxxxxxxxxxxxxxx)

    /usr/bin/codesign --force --sign xxxxxxxxxxxxxxxxxxxxxx--entitlements /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent --timestamp\=none /Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app
/Users/diginetiot/ios_remote_provider/repos/WebDriverAgent/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app: replacing existing signature

** TEST BUILD SUCCEEDED **

Mac-mini:ios_remote_provider diginetiot$ 

But when I run the ./main run on the Mac Mini , I get this

Got incoming frame 1860
Got incoming frame 1890
Got incoming frame 1920
INFO[0050] Process start - wda                           binary=bin/go-ios proc=wda type=proc_start
WARN[0050] Process end - wda                             proc=wda type=proc_end
Notified control floor of 'wda stop'; uuid=***265d
Got incoming frame 1950
Got incoming frame 1980
Got incoming frame 2010

On ControlFloor I get

devStatus request; status=wdaStopped
  udid=51e86d44707a71cb1774eca3a73f05bf34d0265d
WDA stopped for 51e86d44707a71cb1774eca3a73f05bf34d0265d
sending {id:7924,type:"ping"}

received {id:7924,text:"pong"}

pong text pong
sending {id:21273,type:"ping"}

received {id:21273,text:"pong"}

pong text pong
provider user=first
devStatus request; status=wdaStopped
  udid=51e86d44707a71cb1774eca3a73f05bf34d0265d
WDA stopped for 51e86d44707a71cb1774eca3a73f05bf34d0265d
sending {id:18074,type:"ping"}

received {id:18074,text:"pong"}

pong text pong
sending {id:5005,type:"ping"}

received {id:5005,text:"pong"}

pong text pong
provider user=first
devStatus request; status=wdaStopped
  udid=51e86d44707a71cb1774eca3a73f05bf34d0265d
WDA stopped for 51e86d44707a71cb1774eca3a73f05bf34d0265d
sending {id:24370,type:"ping"}

received {id:24370,text:"pong"}

My question is my config.json on the Mac mini looks like this

{
    controlfloor: {
        host: "192.168.1.111:8080"
        username: "first"
        https: true
        selfSigned: true
    }
    wda: {
        // Your Apple Developer Team OU
        // If you don't know this, you can find it by running ./util/signers.pl
        devTeamOu: "xxxxxxxxxxxxxxxxx"

        // Some unique Bundle ID prefix to usefor the Bundle IDs for WebDriverAgent
        // This default, "com.appium", will likely work for paid developer accounts
        // Make sure the provisioning profile you setup has a wildcard identifier matching this
        // The two identifiers that will be made if "com.appium" is used are
        // "com.appium.WebDriverAgentLib"
        // "com.appium.WebDriverAgentRunner"
        // If you are using a free developer account, you will not have any provisioning profile,
        //   so you will need to set this bundle prefix to something globally unique, such as
        //   "com.[your name]"
        bundleIdPrefix: "com.appium"

        runner: {
            buildStyle: "Automatic" // or "Manual"
            provisioningProfile: "" // specify when buildStyle is Manual
        }
    },
    vidapp: {
        devTeamOu: "xxxxxxxxxxxxxxxxx"
        bundleIdPrefix: "com.dryark"
    }

}

The ControlFllor config.json is like this

{
    // This listens on all interfaces on port 8080
    listen: "192.168.1.111:8080"

    https: true

    auth: {
        // "builtin" uses builtin database based auth
        // "mod" additionally checks for controlfloor_auth mod based auth
        type: "mod"
    }
}

I get the info in the UI, but nothing in the Device Video screen, do I have to test the WDA xcode project and the VidStream through Xcode, (BTW I'm running Xcode 12.5.1 and the device is on iOS15). For the VidStream I cannot test, only run is available, WDA I can test, so it installs on the device but not Vidstream. If I run Vidsctream, I can see it on the device screen and I can start Broadcast

image

Please help!!

nanoscopic commented 3 years ago

You can test starting WDA by itself without any of the other parts by running ./main wda in the provider project.

The WDA outputs a log file to wda.log in that same folder. If it starts up and actually does something it will generate some output.

By default, go-ios is used to start WDA. It doesn't work for all device types currently.

I'd recommend switching to tidevice instead as it has more compatibility currently. See the instructions on how to do that at the bottom of the provider readme: https://github.com/nanoscopic/ios_remote_provider

man4567890 commented 3 years ago

Thanks so much, I got it working, there were some old STF stuff running, so killed them with pkill node pkill stf pkill iproxy