Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add info into the README/Troubleshooting how to reanimate WDA on Apple TV #212

Open
dhreben opened this issue Aug 21, 2023 · 0 comments
Open
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@dhreben
Copy link
Contributor

dhreben commented Aug 21, 2023

Sometimes we can observe the ERROR! Unable to get WDA status successfully! on Apple TV

log:

docker logs -f device-Apple_TV-bd03d002eae5d3087074198596cec3a0faf72a7d

{"deviceList":["bd03d002eae5d3087074198596cec3a0faf72a7d","d6afc6b3a65584ca0813eb8957c6479b9b6ebb11"]}
device info:  {"ActivationState":"Activated","ActivationStateAcknowledged":true,"BasebandStatus":"NoTelephonyCapabilty","BluetoothAddress":"28:ff:3c:a0:36:9b","BoardId":52,"BootSessionID":"1982206E-7714-4CD0-9DCE-23773024D189","BrickState":false,"BuildVersion":"20M73","CPUArchitecture":"arm64","ChipID":28672,"DeviceClass":"AppleTV","DeviceColor":"unknown","DeviceName":"Mercury","DieID":2820045745492134,"EthernetAddress":"28:ff:3c:a3:ac:f2","FirmwareVersion":"iBoot-8422.140.59","HardwareModel":"J42dAP","HardwarePlatform":"t7000","HostAttached":true,"HumanReadableProductVersionString":"16.6","MLBSerialNumber":"C0790940A19JHRGAF","ModelNumber":"MR912","NonVolatileRAM":{"SystemAudioVolumeSaved":"dHJ1ZQ==","auto-boot":"dHJ1ZQ==","boot-args":"","com.apple.System.tz0-size":"MHg4MDAwMDA=","ota-original-base-os-version":"MjBMNDk4"},"PairRecordProtectionClass":4,"PartitionType":"GUID_partition_scheme","PasswordProtected":false,"ProductName":"Apple TVOS","ProductType":"AppleTV5,3","ProductVersion":"16.6","ProductionSOC":true,"ProtocolVersion":"2","RegionInfo":"RS/A","SerialNumber":"C07YDB91JG2X","SoftwareBundleVersion":"","SupportedDeviceFamilies":[3],"TelephonyCapability":false,"TimeIntervalSince1970":1692367161.662465,"TimeZone":"Europe/Minsk","TimeZoneOffsetFromUTC":10800,"TrustedHostAttached":true,"UniqueChipID":2820045745492134,"UniqueDeviceID":"bd03d002eae5d3087074198596cec3a0faf72a7d","UseRaptorCerts":true,"Uses24HourClock":false,"WiFiAddress":"28:ff:3c:99:e1:3e","instruments:hardwareInformation":{"hwCPU64BitCapable":1,"hwCPUsubtype":1,"hwCPUtype":16777228,"numberOfCpus":2,"numberOfPhysicalCpus":2},"instruments:networkInformation":{"en0":"Ethernet en0","en1":"Wi-Fi","en3":"Ethernet Adapter (en3)","lo0":"Loopback"}}
ERROR! Unable to get WDA status successfully!

Workaround:

  1. Open Xcode
  2. Open WebDriverAgent.xcodeproj in Xcode.
  3. Remove your WebDriverAgent folder from DerivedData and run Clean build folder (just in case).
  4. Build the application by selecting the WebDriverAgentRunner target and build for Generic iOS Device. Run Product -> Build for testing. This will create a Products/Debug-iphoneos in the specified project directory.
    Example: /Users/$USER/Library/Developer/Xcode/DerivedData/WebDriverAgent-dzxbpamuepiwamhdbyvyfkbecyer/Build/Products/Debug-iphoneos
  5. Go to the "Products/Debug-iphoneos" directory and run: mkdir Payload
  6. Copy the WebDriverAgentRunner-Runner.app to the Payload directory: cp -r WebDriverAgentRunner-Runner.app Payload
  7. Zip up the project as an *.ipa file: zip -r WebDriverAgent.ipa ./Payload
  • Make sure to specify relative ./Payload to archive only Payload folder content
  1. Share built ipa via WDA_FILE roles/mac-devices/vars/main.yml
  2. Run ansible playbook. - ansible-playbook -vvv -i hosts mac-devices.yml --tag registerDevices
  3. Restart Apple TV
  4. ./zebrunner.sh start udid
@dhreben dhreben added the documentation Improvements or additions to documentation label Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants