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

Issues with iOS setup #10

Open
4 tasks
garg3133 opened this issue Jan 24, 2023 · 2 comments
Open
4 tasks

Issues with iOS setup #10

garg3133 opened this issue Jan 24, 2023 · 2 comments

Comments

@garg3133
Copy link
Member

Listing a few known issues with iOS setup:

  • It outputs "Xcode is not installed" even when Xcode is actually installed and just xcode-select does not point to the installed Xcode app path.
  • We should suggest users to download Xcode 13 even if they are setting up for mobile-web, since Xcode 13 would also work with Appium while Xcode 14 won't.
  • If --appium flag is used, ask the users to download Xcode 13, even when they have Xcode 14 already installed.
  • Check whether Xcode 14 works with Appium v2 (beta), and if so, we can also give them an option to use Appium v2 instead of downloading Xcode 13, if Xcode 14 is already installed.
@garg3133
Copy link
Member Author

garg3133 commented Feb 6, 2023

Regarding the last point (Xcode 14 with Appium 2), the combination works fine but the current Wikipedia app we are testing against is unable to open topic detail page on iOS 16.x

So, maybe we should just default to Appium 2 (beta), since it's also the only supported version of Appium.

@garg3133
Copy link
Member Author

garg3133 commented Feb 6, 2023

To run iOS tests with Xcode 14 using Appium 1, you need to replace the existing appium-webdriveragent (one that comes with Appium 1) with v4.9.0. To do that, follow the below steps:

  • Download WebDriverAgent v4.9.0 (zip file) and extract it.
  • Go to:
    • For global Appium installation: /usr/local/lib/node_modules/appium/node_modules/
    • For local Appium installation: /path/to/your/project/node_modules/appium/node_modules/
    • If you use nvm to install node: /Users/UserName/.nvm/versions/node/vx.x.x/lib/node_modules/appium/node_modules/
  • Delete all the contents of appium-webdriver saving the build folder only.
  • Copy the contents of the folder extracted in first step and paste into appium-webdriver folder.
  • Run you iOS test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant