appium / appium-mac2-driver

Next-gen Appium macOS driver, backed by Apple XCTest
Apache License 2.0
116 stars 24 forks source link

xcode-select was /Library/Developer/CommandLineTools instead of /Applications/Xcode.app/Contents/Developer #111

Closed Karthikeyan021298 closed 2 years ago

Karthikeyan021298 commented 2 years ago

While running the Selenium project using Mac 2 Driver, I am getting the mentioned Error.

Xcode Version-13.2.1

Appium-Server Logs: Mac2Driver-Appium-Logs.txt

Eclipse exception Mac2Driver-Eclipse-Exception.txt

KazuCocoa commented 2 years ago
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:10100/status] with no body
[WebDriverAgentMac] [xcodebuild] xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
[WD Proxy] connect ECONNREFUSED 127.0.0.1:10100
[WebDriverAgentMac] Mac2Driver host process has exited with code 1, signal null

Did you install Xcode CLI environment? (I guess when you launch Xcode, the CLI env installation also starts to install)

Karthikeyan021298 commented 2 years ago

I have Installed CLI Tools, Still getting the same issue [Uploading Mac2Driver_AppiumLogs_After_Downloading_CLITools.txt…]()

KazuCocoa commented 2 years ago

What's the result of xcode-select? Possibly you should set xcode as /Applications/Xcode.app/Contents/Developer. If not, I guess Apple changed the Xcode path(?)

Karthikeyan021298 commented 2 years ago

xcode is in the Application section only, but How can I set the Xcode /Applications/Xcode.app/Contents/Developer location?

Screenshot 2022-01-11 at 3 11 04 PM
Karthikeyan021298 commented 2 years ago
Screenshot 2022-01-11 at 3 19 42 PM

I can see the folder structure in this location "/Applications/Xcode.app/Contents/Developer "

KazuCocoa commented 2 years ago

Did you run xcode-select? It prints helps, -p and -s. You can print current Xcode path as CLI and set it.

Karthikeyan021298 commented 2 years ago

After setting the path of the xcode in the preffered location (/Applications/Xcode.app/Contents/Developer), the issue got resolved and now it is working fine.

Thank you so much Sir !!!!!