sinoru / actions-setup-xcode Goto Github PK
View Code? Open in Web Editor NEWSet up your GitHub Actions workflow with a specific version of Xcode
License: MIT License
Set up your GitHub Actions workflow with a specific version of Xcode
License: MIT License
I got this error
Run sinoru/[email protected]
/usr/local/lib/ruby/gems/2.7.0/bin/xcversion select [11](https://github.com/MoatazAbdAlmageed/First-Mobile-App/runs/5837076214?check_suite_focus=true#step:5:11).2.1
[!] Version 11.2.1 not installed.
Warning: Xcode 11.2.1 not avilable in local.
/usr/local/lib/ruby/gems/2.7.0/bin/xcversion install 11.2.1
Error: The operation was canceled.
I got this error
and tried to change the version also got this
[!] Version 12.5 not installed.
Warning: Xcode 12.5 not avilable in local.
/usr/local/lib/ruby/gems/2.7.0/bin/xcversion install 12.5
Error: The operation was canceled.
https://github.com/MoatazAbdAlmageed/First-Mobile-App/runs/5852381470?check_suite_focus=true
Is there a way to select latest version of xCode?
Example action file
https://github.com/Kylmakalle/kotatogram-desktop/blob/9352101db3758c17c3aec10a7b092cb99bb47024/.github/workflows/build-macos.yml
%/usr/local/lib/ruby/gems/2.6.0/gems/xcode-install-2.6.3/lib/xcode/install.rb:222:in `pwd': No such file or directory - getcwd (Errno::ENOENT)
from /usr/local/lib/ruby/gems/2.6.0/gems/xcode-install-2.6.3/lib/xcode/install.rb:222:in `install_dmg'
from /usr/local/lib/ruby/gems/2.6.0/gems/xcode-install-2.6.3/lib/xcode/install.rb:284:in `install_version'
from /usr/local/lib/ruby/gems/2.6.0/gems/xcode-install-2.6.3/lib/xcode/install/install.rb:50:in `run'
from /usr/local/lib/ruby/gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
from /usr/local/lib/ruby/gems/2.6.0/gems/xcode-install-2.6.3/bin/xcversion:12:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.6.0/bin/xcversion:23:in `load'
from /usr/local/lib/ruby/gems/2.6.0/bin/xcversion:23:in `<main>'
##[error]The process 'xcversion' failed with exit code 1
##[error]Node run failed with exit code 1
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: sinoru/actions-setup-xcode@v2
Used this on a mac1.metal
EC2 instance.
- name: Set up Xcode
uses: sinoru/actions-setup-xcode@v2
with:
xcode-version: 13.2.1
apple-id: ${{ inputs.apple_id_email }}
apple-id-password: ${{ secrets.apple_id_password }}
Got this error message:
Error: Unable to locate executable file: xcversion. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
Seems xcode-install
(fastlane) is needed. Adding this code snippet before calling sinoru/actions-setup-xcode
seems to solve the problem.
- name: Install xcode-install
run: |
sudo gem install xcode-install
Maybe this should be mentioned as a dependency in the README?
Thanks for your contributions!
Got this error message after killing the xcversion update
command manually on my CI machine after it got stuck for several minutes. Turns out that I couldn't log in to the Apple ID without 2FA.
Run sinoru/actions-setup-xcode@v2
/usr/local/bin/xcversion select 13.2.1
[!] Version 13.2.1 not installed.
Warning: Xcode 13.2.1 not avilable in local.
Install Xcode
/usr/local/bin/xcversion update
Two-factor Authentication (6 digits code) is enabled for account '<redacted>'
More information about Two-factor Authentication: https://support.apple.com/en-us/HT204915
If you're running this in a non-interactive session (e.g. server or CI)
check out https://github.com/fastlane/fastlane/tree/master/spaceship#2-step-verification
Please enter the 6 digit code you received at <redacted>:
Error: The process '/usr/local/bin/xcversion' failed with exit code null
The problem is described further in this link: https://github.com/fastlane/fastlane/tree/master/spaceship#2-step-verification
I suggest this project to add the SPACESHIP_ONLY_ALLOW_INTERACTIVE_2FA
environment variable as described in https://docs.fastlane.tools/best-practices/continuous-integration/ so at least the builds won't get stuck asking for a verification code.
I see SPACESHIP_SKIP_2FA_UPGRADE
is already added which is good so verification code inputs are avoided if they aren't needed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.