appium / appium-idb

idb integration for Appium
Apache License 2.0
75 stars 13 forks source link

test: fix functional spec #63

Closed rerorero closed 1 year ago

rerorero commented 1 year ago

This PR fixes xctest specs by updating WDA runner app. It just fails to run.

idb xctest list-bundle --udid 3FE0E777-F0A0-4A25-B1B0-4FAD4D567AA7 --json com.facebook.wda.runner Listing of tests failed due to xctest binary exiting with non-zero exit code 10 [DLOpen Error]: Reason: Incompatible library version: WebDriverAgentRunner requires version 1.0.0 or later, but XCTest provides version 0.0.0

I confirmed DEVICE_NAME="iPhone 11 Pro Max" PLATFORM_VERSION="15.2" npm run e2e-test passed all on my M1 macbook.

rerorero commented 1 year ago

CI fails 🤔 will take a look

rerorero commented 1 year ago

please take a look at this first https://github.com/appium/appium-idb/pull/66

rerorero commented 1 year ago

The connection error has been fixed but it turned out that another errors show up https://github.com/appium/appium-idb/actions/runs/3736117556/jobs/6340083048 Will take a look 👁️

rerorero commented 1 year ago

Apparently the xctest app unable to run on intel. When it runs idb xctest list-bundle the app crashes with SIGKILL (Code Signature Invalid). I have Intel macbook and I reproduce it on it as well. I think I built it wrong. I will try to fix it.

rerorero commented 1 year ago

I ended up with using idb 1.1.7 https://github.com/appium/appium-idb/pull/63/commits/e6a64827e99ac1c6e0675fc1f739c2ea578e7cd3 It turned out idb 1.1.8 seems to have a problem running xctest on Intel. https://github.com/facebook/idb/issues/811 This may have something to do with that they stopped building when installing homebrew at 1.1.8 because it works fine with the idb_companion built from the source.

Now this PR got ready for review, PTAL.