[scan] fix: Properly select device if Xcode destination is provided - #29814
[scan] fix: Properly select device if Xcode destination is provided#29814mykola-mokhnach wants to merge 3 commits into
Conversation
|
Could you help me understand this avenue vs the So to see Apologies if these are dumb questions - honestly not used scan yet. |
No problem @iBotPeaches, I'm happy to provide more details, and thanks for taking a look into the PR. If you check the above CI log you could see that in the affected PR I was providing only the
So, seeing that fastlane selects absolutely different simulator device and OS version was completely unexpected to me. In such case the mismatch was a major problem since it's important to select a correct device and platform to run integrations tests on. Now I have updated my code to use If there are any major concerns about merging the PR itself then we could at least update the documentation to explain that fastlane deliberately ignores parameters provided in |
Checklist
bundle exec rspecfrom the root directory to see all new and existing tests passbundle exec rubocop -ato ensure the code style is validci/circlecibuilds in the "All checks have passed" section of my PR (connect CircleCI to GitHub if not)Motivation and Context
Currently the
testlane ignores device parameters provided in thedestinationargument and selects the first matched device instead. Check the https://github.com/appium/WebDriverAgent/actions/runs/20296663483/job/58291864199?pr=1086#step:7:79 CI log for more details. Even though we set the destination toplatform\=iOS\ Simulator,name\=iPhone\ 17,OS\=26.1Fastlane logs the following Simulator selected:[08:46:47]: Found simulator "iPhone 16 Pro (18.4)".Description
Testing Steps