GithubHelp home page GithubHelp logo

sinoru / actions-setup-xcode Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 5.0 19.35 MB

Set up your GitHub Actions workflow with a specific version of Xcode

License: MIT License

JavaScript 100.00%
apple ci continuous-deployment continuous-integration github-actions ios macos tvos watchos xcode

actions-setup-xcode's Introduction

Hi there ๐Ÿ‘‹ I'm Jaehong Kang.

  • ๐Ÿ”ญ Iโ€™m currently working on Swift, Obj-C++ Development (for iOS/macOS App, Multi Platform Library).
  • ๐Ÿ“ซ How to reach me: Telegram (sinoru), LINE (sinoru39)

actions-setup-xcode's People

Contributors

bryanmacfarlane avatar dmarcey avatar ethomson avatar sinoru avatar stephenmichaelf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

actions-setup-xcode's Issues

Version not installed.

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

Xcode Version

Is there a way to select latest version of xCode?

Error after download "pwd: No such file or directory - getcwd"

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

xcversion not found

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!

2FA with Apple ID

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.