xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.58k stars 237 forks source link

xcode-install fails through Jenkins job #419

Closed menvol3 closed 3 years ago

menvol3 commented 3 years ago

Hi, I’m trying to automate installation of Xcode with Jenkins

I’m using xcode-install with fastlane

When I’m running it locally, it works fine, but with jenkins job i receive a strange error

/usr/local/Cellar/fastlane/2.171.0/libexec/gems/xcode-install-2.6.8/lib/xcode/install.rb:229:in pwd': No such file or directory - getcwd (Errno::ENOENT)

.xip file downloads to the directory/Users/username/Library/Caches/XcodeInstall/

Then according to the install.rb it searching Xcode.app file in current directory, in my case it is a directory where job running, and then it fails, but Xcode.app already there, even after error.