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

[issue]: automate appium-mac2-driver requirements of Xcode install #197

Open
dimag25 opened this issue Mar 6, 2023 · 6 comments
Open

[issue]: automate appium-mac2-driver requirements of Xcode install #197

dimag25 opened this issue Mar 6, 2023 · 6 comments

Comments

@dimag25
Copy link

dimag25 commented Mar 6, 2023

Hi,

my goal is create fully e2e automation with appium-mac-driver:

use case:

  1. create mac mini vm instance in AWS
  2. install my app for testing inside the mac vm
  3. test the app via appium-mac2-driver inside mac vm
  4. teardown of the mac vm instance
  • all flow runs from Jenkins
  • macOS versions >= 10.15 (Catalina)

problems and errors:
after all flow runs and appium server runs inside mac machine got the following error:

[WebDriverAgentMac] Cannot perform project cleanup. Original error: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
  • should be related to Xcode?
  • I got blockers when I tried to install Xcode in automation flow .

found this article how to install : https://www.moncefbelyamani.com/how-to-install-xcode-with-homebrew/
problem : before use mas cli command to install xcode I must to signin to apple id ,
but Signin command disabled on macOS 10.13+ : mas-cli/mas#164

anyone have any idea how can I workaround this blocker? how can I install xcode from mac os terminal?

@KazuCocoa
Copy link
Member

You might need to set xcode-select for /Applications/Xcode.app/Contents/Developer, which requires Xcode. The default /Library/Developer/CommandLineTools is probably newer macOS's default one, which does not have Xcode initially

@dimag25
Copy link
Author

dimag25 commented Mar 6, 2023

how can I set it?
is there any commands?

@KazuCocoa
Copy link
Member

xcode-select -s /path/to/Xcode.app/Contents/Developer. man xcode-select tells more details

@dimag25
Copy link
Author

dimag25 commented Mar 7, 2023

Thank you, but in any case I must be with installed xcode yes?
my issue is to install it silently via command line because of apple limitations via mas cli:
mas-cli/mas#164

it can be done only with gui via app store?

@KazuCocoa
Copy link
Member

You need the Xcode env to build modules, and handle some commands by it.
Officially AppStore, or the developer page https://developer.apple.com/download/

@MagdelineNg
Copy link

MagdelineNg commented Feb 25, 2024

@dimag25 Did you find a solution for installing the Xcode app on your mac mini vm instance? I'm doing the exact same thing and encountering the same error, as I only have Xcode command-line tools on the ECS node currently

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

3 participants