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

Running it in CircleCI always provides login errors #13

Open
brandonin opened this issue Jul 22, 2021 · 0 comments
Open

Running it in CircleCI always provides login errors #13

brandonin opened this issue Jul 22, 2021 · 0 comments

Comments

@brandonin
Copy link

Whenever I attempt to run this in CircleCI I always receive login errors.

This does not happen locally. I am currently using the user token for codepush and the app token for regular releases.

#!/bin/bash --login -eo pipefail
fastlane ios deploy_to_codepush
[⠋] 🚀 [⠙] 🚀 [⠹] 🚀 [⠸] 🚀 [⠼] 🚀 [⠴] 🚀 [⠦] 🚀 [⠧] 🚀 [✔] 🚀 
[20:54:43]: fastlane detected a Gemfile in the current directory
[20:54:43]: However, it seems like you didn't use `bundle exec`
[20:54:43]: To launch fastlane faster, please use
[20:54:43]: 
[20:54:43]: $ bundle exec fastlane ios deploy_to_codepush
[20:54:43]: 
[20:54:43]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[20:54:46]: Installing Ruby gem 'fastlane-plugin-firebase_app_distribution'...
Fetching fastlane-plugin-firebase_app_distribution-0.2.9.gem
[20:54:46]: Successfully installed 'fastlane-plugin-firebase_app_distribution'
[20:54:47]: Installing Ruby gem 'fastlane-plugin-appcenter'...
Fetching fastlane-plugin-appcenter-1.11.1.gem
[20:54:47]: Successfully installed 'fastlane-plugin-appcenter'
[20:54:47]: Installing Ruby gem 'fastlane-plugin-codepush'...
Fetching fastlane-plugin-codepush-0.2.2.gem
[20:54:47]: Successfully installed 'fastlane-plugin-codepush'
[20:54:47]: Installing Ruby gem 'fastlane-plugin-load_json'...
Fetching fastlane-plugin-load_json-0.0.1.gem
[20:54:48]: Successfully installed 'fastlane-plugin-load_json'
+-------------------------------------------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                                                                            Used plugins                                                                                                                                             |
+-------------------------------------------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Plugin                                    | Version | Action                                                                                                                                                                                                                                        |
+-------------------------------------------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| fastlane-plugin-firebase_app_distribution | 0.2.9   | firebase_app_distribution_login, firebase_app_distribution_get_udids, firebase_app_distribution                                                                                                                                               |
| fastlane-plugin-appcenter                 | 1.11.1  | appcenter_fetch_version_number, appcenter_fetch_devices, appcenter_upload                                                                                                                                                                     |
| fastlane-plugin-codepush                  | 0.2.2   | codepush_exists_deployment, codepush_release_react, codepush_login, codepush_get_deployment_key, codepush_list_deployment, codepush_remove_deployment, codepush_logout, codepush_rename_deployment, codepush_add_deployment, codepush_promote |
| fastlane-plugin-load_json                 | 0.0.1   | load_json                                                                                                                                                                                                                                     |
+-------------------------------------------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

[20:54:51]: Sending anonymous analytics information
[20:54:51]: Learn more at https://docs.fastlane.tools/#metrics
[20:54:51]: No personal or sensitive data is sent.
[20:54:51]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
[20:54:51]: ------------------------------
[20:54:51]: --- Step: default_platform ---
[20:54:51]: ------------------------------
[20:54:51]: Driving the lane 'ios deploy_to_codepush' 🚀
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
[20:54:51]: -----------------------------
[20:54:51]: --- Step: setup_circle_ci ---
[20:54:51]: -----------------------------
[20:54:51]: Skipping Log Path setup as FL_OUTPUT_DIR is unset
[20:54:51]: Creating temporary keychain: "fastlane_tmp_keychain".
[20:54:52]: $ security list-keychains -d user
[20:54:52]: ▸ "/Users/distiller/Library/Keychains/fastlane_tmp_keychain-db"
[20:54:52]: Found keychain '/Users/distiller/Library/Keychains/fastlane_tmp_keychain-db' in list-keychains, adding to search list skipped
[20:54:52]: Enabling match readonly mode.
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
[20:54:52]: ----------------------------
[20:54:52]: --- Step: codepush_login ---
[20:54:52]: ----------------------------
[20:54:52]: User is not logged in
+---------------------------+--------------------------------------------------------+
|                                    Lane Context                                    |
+---------------------------+--------------------------------------------------------+
| DEFAULT_PLATFORM          | ios                                                    |
| PLATFORM_NAME             | ios                                                    |
| LANE_NAME                 | ios deploy_to_codepush                                 |
| KEYCHAIN_PATH             | ~/Library/Keychains/fastlane_tmp_keychain              |
| ORIGINAL_DEFAULT_KEYCHAIN | "/Users/distiller/Library/Keychains/login.keychain-db" |
+---------------------------+--------------------------------------------------------+
[20:54:52]: Something went wrong during App Center login!! Please ensure login token **************************************** is correct

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | setup_circle_ci  | 0           |
| 💥   | codepush_login   | 0           |
+------+------------------+-------------+

[20:54:52]: fastlane finished with errors

[!] Something went wrong during App Center login!! Please ensure login token **************************************** is correct

Exited with code exit status 1
CircleCI received exit code 1
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

1 participant