fastlane / fastlane

πŸš€ The easiest way to automate building and releasing your iOS and Android apps

Home Page:https://fastlane.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error cloning cryptex git repo

anastasiaShpakava opened this issue Β· comments

[11:50:12]: fastlane detected a Gemfile in the current directory
[11:50:12]: However, it seems like you didn't use bundle exec
[11:50:12]: To launch fastlane faster, please use
[11:50:12]:
[11:50:12]: $ bundle exec fastlane staging app:MyApp
[11:50:12]:
[11:50:12]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[11:50:12]: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables
+---------------------------+---------+------------------------------------+
| Used plugins |
+---------------------------+---------+------------------------------------+
| Plugin | Version | Action |
+---------------------------+---------+------------------------------------+
| fastlane-plugin-cryptex | 0.1.5 | cryptex, cryptex_generate_keystore |
| fastlane-plugin-appcenter | 2.0.0 | appcenter_codepush_release_react, |
| | | appcenter_fetch_devices, |
| | | appcenter_fetch_version_number, |
| | | appcenter_upload |
+---------------------------+---------+------------------------------------+

11:50:14: --- Step: default_platform ---
11:50:14: ------------------------------
11:50:14: Driving the lane 'android staging' πŸš€
11:50:14: --------------------------------------------------
11:50:14: --- Step: Switch to android assemble_vars lane ---
11:50:14: --------------------------------------------------
11:50:14: Cruising over to lane 'android assemble_vars' πŸš–
11:50:14: Cruising back to lane 'android staging' 🚘
11:50:14: ------------------------------------------
11:50:14: --- Step: Switch to android build lane ---
11:50:14: ------------------------------------------
11:50:14: Cruising over to lane 'android build' πŸš–
11:50:14: ---------------------
11:50:14: --- Step: cryptex ---
11:50:14: ---------------------
11:50:14: The cryptex plugin is working!
11:50:14: Successfully loaded 'C:/Users/Me/AndroidStudioProjects/myApp_android/myApp-android/fastlane/Cryptexfile' πŸ“„

+---------+----------------------------------------------------------+
| Detected Values from './fastlane/Cryptexfile' |
+---------+----------------------------------------------------------+
| git_url | git@bitbucket.org:myApps/myApp-certificates.gi |
| | t |
+---------+----------------------------------------------------------+

+---------------+----------------------------------------------------------+
| Summary for cryptex 0.1.5 |
+---------------+----------------------------------------------------------+
| type | export |
| out | fastlane/secrets/myApp-ci.json |
| key | myApp-ci.key |
| git_url | git@bitbucket.org:myApp/myApp-certificates.gi |
| | t |
| git_branch | master |
| set_env | false |
| verbose | false |
| shallow_clone | false |
| skip_docs | false |
| digest | md5 |
+---------------+----------------------------------------------------------+

11:50:14: Cloning remote git repo...
No such file or directory - GIT_TERMINAL_PROMPT=0 git clone 'git@bitbucket.org:myApp/myApp-certificates.git' 'C:/Users/MeAppData/Local/Temp/d20220520-8928-6cgrx'
11:50:14: Error cloning Repo
11:50:14: Run the following command manually to make sure you're properly authenticated:
11:50:14: $ git clone 'git@bitbucket.org:myApp/myApp-certificates.git' 'C:/Users/Me/AppData/Local/Temp/d20220520-8928-6cgrx'
11:50:14: πŸ”’ Successfully encrypted certificates repo
+------------------+-----------------+
| Lane Context |
+------------------+-----------------+
| DEFAULT_PLATFORM | android |
| PLATFORM_NAME | android |
| LANE_NAME | android staging |
+------------------+-----------------+
11:50:14: Error cloning cryptex git repo, please make sure you have access to the repository - see instructions above

+------+----------------------------------+-------------+
| fastlane summary |
+------+----------------------------------+-------------+
| Step | Action | Time (in s) |
+------+----------------------------------+-------------+
| 1 | default_platform | 0 |
| 2 | Switch to android assemble_vars | 0 |
| | lane | |
| 3 | Switch to android build lane | 0 |
| πŸ’₯ | cryptex | 0 |
+------+----------------------------------+-------------+

11:50:14: fastlane finished with errors

[!] Error cloning cryptex git repo, please make sure you have access to the repository - see instructions above
11:50:14: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables

[βœ”] πŸš€
[12:11:33]: fastlane detected a Gemfile in the current directory
[12:11:33]: However, it seems like you didn't use bundle exec
[12:11:33]: To launch fastlane faster, please use
[12:11:33]:
[12:11:33]: $ bundle exec fastlane env
[12:11:33]:
[12:11:33]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[12:11:33]: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables
[12:11:35]: Generating fastlane environment output, this might take a few seconds...

🚫 fastlane environment 🚫
[12:11:36]: Take notice that this output may contain sensitive information, or simply information that you don't want to make public. [12:11:36]: Open https://github.com/fastlane/fastlane/issues/new to submit a new issue βœ… [12:11:36]: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env πŸ‘

[11:50:12]: fastlane detected a Gemfile in the current directory
[11:50:12]: However, it seems like you didn't use bundle exec
[11:50:12]: To launch fastlane faster, please use
[11:50:12]:
[11:50:12]: $ bundle exec fastlane staging app:MyApp
[11:50:12]:
[11:50:12]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[11:50:12]: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables
+---------------------------+---------+------------------------------------+
| Used plugins |
+---------------------------+---------+------------------------------------+
| Plugin | Version | Action |
+---------------------------+---------+------------------------------------+
| fastlane-plugin-cryptex | 0.1.5 | cryptex, cryptex_generate_keystore |
| fastlane-plugin-appcenter | 2.0.0 | appcenter_codepush_release_react, |
| | | appcenter_fetch_devices, |
| | | appcenter_fetch_version_number, |
| | | appcenter_upload |
+---------------------------+---------+------------------------------------+

11:50:14: --- Step: default_platform ---
11:50:14: ------------------------------
11:50:14: Driving the lane 'android staging' πŸš€
11:50:14: --------------------------------------------------
11:50:14: --- Step: Switch to android assemble_vars lane ---
11:50:14: --------------------------------------------------
11:50:14: Cruising over to lane 'android assemble_vars' πŸš–
11:50:14: Cruising back to lane 'android staging' 🚘
11:50:14: ------------------------------------------
11:50:14: --- Step: Switch to android build lane ---
11:50:14: ------------------------------------------
11:50:14: Cruising over to lane 'android build' πŸš–
11:50:14: ---------------------
11:50:14: --- Step: cryptex ---
11:50:14: ---------------------
11:50:14: The cryptex plugin is working!
11:50:14: Successfully loaded 'C:/Users/Me/AndroidStudioProjects/myApp_android/myApp-android/fastlane/Cryptexfile' πŸ“„

+---------+----------------------------------------------------------+
| Detected Values from './fastlane/Cryptexfile' |
+---------+----------------------------------------------------------+
| git_url | git@bitbucket.org:myApps/myApp-certificates.gi |
| | t |
+---------+----------------------------------------------------------+

+---------------+----------------------------------------------------------+
| Summary for cryptex 0.1.5 |
+---------------+----------------------------------------------------------+
| type | export |
| out | fastlane/secrets/myApp-ci.json |
| key | myApp-ci.key |
| git_url | git@bitbucket.org:myApp/myApp-certificates.gi |
| | t |
| git_branch | master |
| set_env | false |
| verbose | false |
| shallow_clone | false |
| skip_docs | false |
| digest | md5 |
+---------------+----------------------------------------------------------+

11:50:14: Cloning remote git repo...
No such file or directory - GIT_TERMINAL_PROMPT=0 git clone 'git@bitbucket.org:myApp/myApp-certificates.git' 'C:/Users/MeAppData/Local/Temp/d20220520-8928-6cgrx'
11:50:14: Error cloning Repo
11:50:14: Run the following command manually to make sure you're properly authenticated:
11:50:14: $ git clone 'git@bitbucket.org:myApp/myApp-certificates.git' 'C:/Users/Me/AppData/Local/Temp/d20220520-8928-6cgrx'
11:50:14: πŸ”’ Successfully encrypted certificates repo
+------------------+-----------------+
| Lane Context |
+------------------+-----------------+
| DEFAULT_PLATFORM | android |
| PLATFORM_NAME | android |
| LANE_NAME | android staging |
+------------------+-----------------+
11:50:14: Error cloning cryptex git repo, please make sure you have access to the repository - see instructions above

+------+----------------------------------+-------------+
| fastlane summary |
+------+----------------------------------+-------------+
| Step | Action | Time (in s) |
+------+----------------------------------+-------------+
| 1 | default_platform | 0 |
| 2 | Switch to android assemble_vars | 0 |
| | lane | |
| 3 | Switch to android build lane | 0 |
| πŸ’₯ | cryptex | 0 |
+------+----------------------------------+-------------+

11:50:14: fastlane finished with errors

[!] Error cloning cryptex git repo, please make sure you have access to the repository - see instructions above
11:50:14: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables

[βœ”] πŸš€
[12:11:33]: fastlane detected a Gemfile in the current directory
[12:11:33]: However, it seems like you didn't use bundle exec
[12:11:33]: To launch fastlane faster, please use
[12:11:33]:
[12:11:33]: $ bundle exec fastlane env
[12:11:33]:
[12:11:33]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[12:11:33]: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables
[12:11:35]: Generating fastlane environment output, this might take a few seconds...

🚫 fastlane environment 🚫

Stack

Key Value
OS UNKNOWN
Ruby 3.0.4
Bundler? false
Git git version 2.31.0.windows.1
Installation Source C:/Ruby30-x64/bin/fastlane
Host Unknown ()
Ruby Lib Dir C:/Ruby30-x64/lib
OpenSSL Version OpenSSL 1.1.1n 15 Mar 2022
Is contained false
Is homebrew false
Is installed via Fabric.app false

System Locale

Error
No Locale with UTF8 found 🚫

fastlane files:

`./fastlane/Fastfile`
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# Usage:
# 1) Set ANDROID_SIGNING_KEY variable to point to the Android package signing key (ask Lauri)
# 2) (Optional): Set CRASHLYTICS_API_TOKEN, CRASHLYTICS_BUILD_SECRET if you want to publish
#    to Fabric Beta
# 3) (Optional): Set SLACK_URL if you want Slack notifications
# 4) (Optional): Set BITRISE_BUILD_NUMBER=<some_int> if you want to publish to Google Play
# 5) Run fastlane <productio|staging> app:<myApp> # to run build
default_platform(:android)

platform :android do

  desc "Assemble input vars"
  lane :assemble_vars do |options|
    # Supply package name from CLI (com.myApp.1 or com.myApp.2)
    # See https://github.com/fastlane/fastlane/issues/7949
    case options[:app]
      when "TeacherApp"
        $apk_file = "./1/build/outputs/apk/myApp1-release.apk"
        $package_name = "com.myApp.1"
        $task_prefix = "myApp"
        $appcenter_app = "myApp"
      when "1"
        $apk_file = "./1/build/outputs/apk/myApp1-release.apk"
        $package_name = "com.myApp.1"
        $task_prefix = "1"
        $appcenter_app = "1"
      else
        raise "Invalid app name #{options[:app]}"
    end
  end

  desc "Invoke build"
  lane :build do |options|
    # Fetch secrets
    cryptex(
      type: "export",
      out: "fastlane/secrets/myApp-ci.json",
      key: "myApp-ci.key"
    )
    cryptex(
      type: "export",
      out: "fastlane/secrets/myApp_signing.jks",
      key: "myApp_signing.jks"
    )

    # Build
    gradle(
      task: "common:assembleRelease #{$task_prefix}:assembleRelease",
      print_command: false,
      properties: {
        "android.injected.signing.store.file" => "fastlane/secrets/myApp_signing.jks",
        "android.injected.signing.store.password" => ENV["ANDROID_SIGNING_KEY"],
        "android.injected.signing.key.alias" => "myApp",
        "android.injected.signing.key.password" => ENV["ANDROID_SIGNING_KEY"],
      }
    )
  end

  desc "Submit a new Beta Build to Appcenter"
  lane :staging do |options|
    # Assemble vars
    assemble_vars(
      app: options[:app]
    )

    # Invoke build
    build(
    )

    appcenter_upload(
      api_token: "77b15b33b1431a3704c91074d275001de84c81bf",
      owner_name: "myApp",
      owner_type: "organization",
      app_name: $appcenter_app,
      notify_testers: true
    )

    # Notify in Slack
    if ENV["SLACK_URL"] =~ /.+/
      slack(
        message: "myApp Android version available in Fabric - check your inbox!",
        channel: "#ci",
        success: true,
        default_payloads: [:git_branch, :git_author, :last_git_commit_message]
      )
    end
  end

  desc "Deploy a new version to the Google Play"
  lane :production do |options|
    # Assemble vars
    assemble_vars(
      app: options[:app]
    )

    # Invoke build
    build(
    )

    # Upload to Goodle Play
    supply(
      # Supply JSON credentials from cryptex
      json_key: "fastlane/secrets/myApp-ci.json",
      package_name: $package_name,
      apk: $apk_file,
      # Uncomment for internal testing
      # track: "internal",
      skip_upload_metadata: true,
      skip_upload_images: true,
      skip_upload_screenshots: true
    )

    # Notify in Slack
    if ENV["SLACK_URL"] =~ /.+/
      slack(
        message: "New Google Play version ready for publishing - check the App Store, write release notes & publish!",
        channel: "#ci",
        success: true,
        default_payloads: [:git_branch, :git_author, :last_git_commit_message]
      )
    end
  end
end

# error block is executed when a error occurs
error do |lane, exception|
  if ENV["SLACK_URL"] =~ /.+/
    slack(
      message: "CI failed with exception : #{exception.to_s}",
      success: false,
      default_payloads: [:git_branch, :git_author, :last_git_commit_message],
      # Output containing extended log output
      payload: { "Output" => exception.to_s }
    )
  end
end
`./fastlane/Appfile`
# Supply the JSON key file from cryptex
#json_key_file("fastlane/secrets/myApp-ci.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one

# Supply the package name from command line
# See https://github.com/fastlane/fastlane/issues/7949
#package_name("com.myApp.1") # e.g. com.krausefx.app

fastlane gems

Gem Version Update-Status
fastlane 2.206.0 βœ… Up-To-Date

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-cryptex 0.1.5 βœ… Up-To-Date
fastlane-plugin-appcenter 2.0.0 βœ… Up-To-Date
Loaded gems
Gem Version
did_you_mean 1.5.0
atomos 0.1.3
rexml 3.2.5
CFPropertyList 3.0.5
claide 1.1.0
colored2 3.1.2
nanaimo 0.3.0
xcodeproj 1.21.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
unicode-display_width 1.8.0
terminal-table 1.8.0
plist 3.6.0
public_suffix 4.0.7
addressable 2.8.0
multipart-post 2.0.0
word_wrap 1.0.0
optparse 0.1.1
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
artifactory 3.0.15
babosa 1.0.4
colored 1.2
highline 2.0.3
commander 4.6.0
excon 0.92.3
faraday-em_http 1.0.0
faraday-em_synchrony 1.0.0
faraday-excon 1.1.0
faraday-httpclient 1.0.1
faraday-multipart 1.0.3
faraday-net_http 1.0.1
faraday-net_http_persistent 1.2.0
faraday-patron 1.0.0
faraday-rack 1.0.0
faraday-retry 1.0.3
ruby2_keywords 0.0.5
faraday 1.10.0
unf_ext 0.0.8.1
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.4
faraday-cookie_jar 0.0.7
faraday_middleware 1.2.0
fastimage 2.2.6
gh_inspector 1.1.3
mini_magick 4.11.0
naturally 2.2.1
rubyzip 2.3.2
security 0.1.3
xcpretty-travis-formatter 1.0.1
dotenv 2.7.6
simctl 1.6.8
jwt 2.3.0
uber 0.1.0
declarative 0.0.20
trailblazer-option 0.1.2
representable 3.2.0
retriable 3.1.2
mini_mime 1.1.2
memoist 0.16.2
multi_json 1.15.0
os 1.1.4
signet 0.16.1
googleauth 1.1.3
httpclient 2.8.3
webrick 1.7.0
google-apis-core 0.5.0
google-apis-playcustomapp_v1 0.7.0
google-apis-androidpublisher_v3 0.21.0
google-cloud-env 1.6.0
google-cloud-errors 1.2.0
google-cloud-core 1.6.0
google-apis-iamcredentials_v1 0.10.0
google-apis-storage_v1 0.14.0
digest-crc 0.6.4
google-cloud-storage 1.36.2
emoji_regex 3.2.3
jmespath 1.6.1
aws-partitions 1.589.0
aws-eventstream 1.2.0
aws-sigv4 1.5.0
aws-sdk-core 3.131.0
aws-sdk-kms 1.57.0
aws-sdk-s3 1.114.0
set 1.0.1
json 2.6.2
bundler 2.3.14
rake 13.0.6
forwardable 1.3.2
logger 1.4.3
pathname 0.1.0
shellwords 0.1.0
cgi 0.2.1
date 3.1.3
timeout 0.1.1
stringio 3.0.1
securerandom 0.1.0
uri 0.10.1
ipaddr 1.2.2
openssl 2.2.1
digest 3.0.0
io-nonblock 0.1.0
io-wait 0.2.0
zlib 2.0.0
resolv 0.2.1
fiddle 1.0.8
time 0.1.0
open-uri 0.1.0
mutex_m 0.1.1
net-protocol 0.1.1
ostruct 0.3.1
english 0.7.1
erb 2.2.0
strscan 3.0.1
abbrev 0.1.0
io-console 0.5.7
tempfile 0.1.1
delegate 0.2.0
fileutils 1.5.0
tmpdir 0.1.2
etc 1.3.0
base64 0.1.0
singleton 0.1.1
net-http 0.1.1
open3 0.1.1
nkf 0.1.0
prettyprint 0.1.1
pp 0.2.1
find 0.1.0
yaml 0.1.1
psych 3.3.2
fastlane-plugin-cryptex 0.1.5
fastlane-plugin-appcenter 2.0.0
csv 3.1.9

generated on: 2022-05-20

[12:11:36]: Take notice that this output may contain sensitive information, or simply information that you don't want to make public. [12:11:36]: Open https://github.com/fastlane/fastlane/issues/new to submit a new issue βœ… [12:11:36]: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables

It seems like you have not included the output of fastlane env To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env πŸ‘

I have sent.

It seems like you have not included the output of fastlane env To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env πŸ‘

I have sent.

@anastasiaShpakava I think, you should add the output in your first post, with all the first description you wrote. Yesterday I opened an issue (previous of yours) and the bot comment the same as here.
I hope we will have response soon!

It seems like you have not included the output of fastlane env To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env πŸ‘

I have sent.

@anastasiaShpakava I think, you should add the output in your first post, with all the first description you wrote. Yesterday I opened an issue (previous of yours) and the bot comment the same as here. I hope we will have response soon!

@anastasiaShpakava have you tried running the git clone command to troubleshoot your cloning issue?

@anastasiaShpakava have you tried running the git clone command to troubleshoot your cloning issue?

If I clone this repo via gitbush, I don't have such problem.

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest fastlane version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘

Friendly reminder: contributions are always welcome! Check out CONTRIBUTING.md for more information on how to help with fastlane and feel free to tackle this issue yourself πŸ’ͺ

This issue will be auto-closed if there is no reply within 1 month.

ezoic increase your site revenue