Coder Social home page Coder Social logo

Comments (8)

roilen avatar roilen commented on April 27, 2024

I have the same issue, and I still can't find the answer.

from fastlane.

adrianilie9 avatar adrianilie9 commented on April 27, 2024

Same issue here, manually importing the certificate, key, and provisioning profile look fine in Xcode.

from fastlane.

muhammadhassan149 avatar muhammadhassan149 commented on April 27, 2024

I'm also facing same issue, any help

[12:01:52]: No code signing identity found and can not create a new one because you enabled readonly

+------------------------------------------------------+
| fastlane summary |
+------+---------------------------------+-------------+
| Step | Action | Time (in s) |
+------+---------------------------------+-------------+
| 1 | Verifying fastlane version | 0 |
| 2 | ensure_git_branch | 0 |
| 3 | ensure_git_status_clean | 0 |
| 4 | git_pull | 3 |
| 5 | Switch to ios build lane | 0 |
| 6 | Switch to ios certificates lane | 0 |
| 7 | match | 2 |
| πŸ’₯ | match | 2 |
+------+---------------------------------+-------------+

[12:01:52]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

➑️ No code signing identity found and can not create a new one because you enabled readonly
#21679 [open] 2 πŸ’¬
a week ago

➑️ [match] errSecInternalComponent if not possible to prompt for keychain password
#15185 [open] 150 πŸ’¬
23 Aug 2023

➑️ Could not install WWDR certificate
#20960 [closed] 80 πŸ’¬
17 Oct 2023

and 34 more at: https://github.com/fastlane/fastlane/search?q=No%20code%20signing%20identity%20found%20and%20can%20not%20create%20a%20new%20one%20because%20you%20enabled%20%60readonly%60&type=Issues&utf8=βœ“

πŸ”— You can ⌘ + double-click on links to open them directly in your browser.
/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane_core/lib/fastlane_core/ui/interface.rb:129:in crash!': [!] No code signing identity found and can not create a new one because you enabled readonly(FastlaneCore::Interface::FastlaneCrash) from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:inmethod_missing'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/match/lib/match/runner.rb:144:in fetch_certificate' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/match/lib/match/runner.rb:73:in run'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/actions/sync_code_signing.rb:19:in run' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:263:in block (2 levels) in execute_action'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in execute_action' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:255:in block in execute_action'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:229:in chdir' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:229:in execute_action'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:157:in trigger_action_by_name' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/fast_file.rb:159:in method_missing'
from Fastfile:14:in block (2 levels) in parsing_binding' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/lane.rb:41:in call'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:204:in try_switch_to_lane' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:146:in trigger_action_by_name'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/fast_file.rb:159:in method_missing' from Fastfile:18:in block (2 levels) in parsing_binding'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/lane.rb:41:in call' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:204:in try_switch_to_lane'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:146:in trigger_action_by_name' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/fast_file.rb:159:in method_missing'
from Fastfile:24:in block (2 levels) in parsing_binding' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/lane.rb:41:in call'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:49:in block in execute' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:45:in chdir'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:45:in execute' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/lane_manager.rb:47:in cruise_lane'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/command_line_handler.rb:36:in handle' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/commands_generator.rb:110:in block (2 levels) in run'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/commander-4.6.0/lib/commander/command.rb:187:in call' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/commander-4.6.0/lib/commander/command.rb:157:in run'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/commander-4.6.0/lib/commander/runner.rb:444:in run_active_command' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in run!'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/commander-4.6.0/lib/commander/delegates.rb:18:in run!' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/commands_generator.rb:354:in run'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/commands_generator.rb:43:in start' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in take_off'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/bin/fastlane:23:in <top (required)>' from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/bin/fastlane:25:in load'
from /opt/homebrew/Cellar/fastlane/2.217.0/libexec/bin/fastlane:25:in `

'
muhammad@Muhammads-MacBook-Pro my_git_theq_app %

from fastlane.

marijnberends avatar marijnberends commented on April 27, 2024

Same issue here, can't seem to find a solution. It did happen after updating the certificate

from fastlane.

marijnberends avatar marijnberends commented on April 27, 2024

While integrating the Fastlane, I am not create the new certificates, Just used the import command. Because we have already created the certificates earlier.

I have .p12 file and it's successfully added in the keychain. It's properly run in Xcode. while running in CI/CD using gitlab its showing this error. In the build stage working fine, but when we come to TestFlight build it's not working. (Native iOS App only)

+---------------------------------------------+ | Detected Values from './fastlane/Matchfile' | +----------------------+----------------------+ | gitlab_project | id | | gitlab_host | https://gitlab.com/ | | storage_mode | gitlab_secure_files | | type | development | +----------------------+----------------------+ +-----------------------------------------------------------------------------------+ | Summary for match 2.217.0 | +----------------------------------------+------------------------------------------+ | type | appstore | | app_identifier | ["com.bundle.id"] | | readonly | true | | generate_apple_certs | true | | skip_provisioning_profiles | false | | username | user | | team_id | id | | storage_mode | gitlab_secure_files | | git_branch | master | | shallow_clone | false | | clone_branch_directly | false | | skip_google_cloud_account_confirmation | false | | s3_skip_encryption | false | | gitlab_project | id | | gitlab_host | https://gitlab.com/ | | job_token | [token] | | keychain_name | fastlane_tmp_keychain | | force | false | | force_for_new_devices | false | | include_mac_in_profiles | false | | include_all_certificates | false | | force_for_new_certificates | false | | skip_confirmation | false | | safe_remove_certs | false | | skip_docs | false | | platform | ios | | derive_catalyst_app_identifier | false | | fail_on_name_taken | false | | skip_certificate_matching | false | | skip_set_partition_list | false | | verbose | false | +----------------------------------------+------------------------------------------+ [14:06:55]: Initializing match for GitLab project on https://gitlab.com/ [14:06:59]: Couldn't find a valid code signing identity for distribution... creating one for you now +--------------------------------------------------------------------------------------------+ | Lane Context | +---------------------------+----------------------------------------------------------------+ | DEFAULT_PLATFORM | ios | | PLATFORM_NAME | ios | | LANE_NAME | ios beta | | KEYCHAIN_PATH | ~/Library/Keychains/fastlane_tmp_keychain | | ORIGINAL_DEFAULT_KEYCHAIN | "/Library/Keychains/fastlane_tmp_keychain-db" | +---------------------------+----------------------------------------------------------------+ [14:06:59]: No code signing identity found and can not create a new one because you enabled readonly +---------------------------------------+ | fastlane summary | +------+------------------+-------------+ | Step | Action | Time (in s) | +------+------------------+-------------+ | 1 | default_platform | 0 | | 2 | setup_ci | 0 | | 3 | is_ci | 0 | | πŸ’₯ | match | 3 | +------+------------------+-------------+ [14:06:59]: fastlane finished with errors Looking for related GitHub issues on fastlane/fastlane... ➑️ [match] errSecInternalComponent if not possible to prompt for keychain password #15185 [open] 150 πŸ’¬ 23 Aug 2023 ➑️ Could not install WWDR certificate #20960 [closed] 80 πŸ’¬ 6 weeks ago ➑️ [match] Fixes Gitlab Secure Files API limit #21205 [closed] 5 πŸ’¬ 04 Jul 2023 and 33 more at: https://github.com/fastlane/fastlane/search?q=No%20code%20signing%20identity%20found%20and%20can%20not%20create%20a%20new%20one%20because%20you%20enabled%20%60readonly%60&type=Issues&utf8=βœ“ πŸ”— You can ⌘ + double-click on links to open them directly in your browser. bundler: failed to load command: fastlane (/usr/local/bin/fastlane) FastlaneCore::Interface::FastlaneCrash: [!] No code signing identity found and can not create a new one because you enabled readonly /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane_core/lib/fastlane_core/ui/interface.rb:129:in crash!' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/match/lib/match/runner.rb:144:in fetch_certificate' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/match/lib/match/runner.rb:73:in run' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/actions/sync_code_signing.rb:19:in run' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:263:in block (2 levels) in execute_action' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in execute_action' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:255:in block in execute_action' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:229:in chdir' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:229:in execute_action' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:157:in trigger_action_by_name' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/fast_file.rb:159:in method_missing' Fastfile:42:in block (2 levels) in parsing_binding' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/lane.rb:41:in call' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:49:in block in execute' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:45:in chdir' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:45:in execute' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/lane_manager.rb:47:in cruise_lane' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/command_line_handler.rb:36:in handle' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/commands_generator.rb:110:in block (2 levels) in run' /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:187:in call' /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:157:in run' /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in run_active_command' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in run!' /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in run!' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/commands_generator.rb:354:in run' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/commands_generator.rb:43:in start' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in take_off' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.217.0/bin/fastlane:23:in <top (required)>' /usr/local/bin/fastlane:23:in load' /usr/local/bin/fastlane:23:in `<top (required)>'

Cleaning up project directory and file based variables

ERROR: Job failed: exit status 1

Any one please guide me on this.

Thanks in advance.

The issue for me was in the match password.
I've created a new repo, nuked my distribution certificates, updated the repo and reset the match by running fastlane match.
It will ask you for a password which is the match password. It will be added to your keychain under login.
I've also created a new personal acces token in github to access the repo

Do make sure to set the provising profiles to the new certificates in xcode

from fastlane.

f-lab-max avatar f-lab-max commented on April 27, 2024

same issue here

from fastlane.

MarkMokhles3 avatar MarkMokhles3 commented on April 27, 2024

Anyone find a solution?!

from fastlane.

Dimon70007 avatar Dimon70007 commented on April 27, 2024

calling this for downloading updated profiles from apple developer portal

match(
      type: development,
      readonly: true,
      username: <myusername>,
      git_url: <mygitlab_repo_url>,
      generate_apple_certs: false,
      git_branch: master,
      shallow_clone: true,
      output_path: <my_dir_path>
    )

expected - fastlane match should download profiles from apple dev portal and upload them to my gitlab repo
received - error - No matching provisioning profiles found and cannot create a new one because you enabled readonly. Check the output above for more information.
used latest fastlane version, tried to remove certificates and profiles from gitlab repo - did not help

as workaround - I have downloaded profiles manually from dev portal and manually encrypted with openssl and commit to mygitlab_repo

enc_pass=<mypassword>
profile_source=Development.mobileprovision
profile_path=Development_<my_app_id>.mobileprovision
openssl aes-256-cbc -a -e -md md5 -k $(enc_pass) -in $(profile_source)  -out $(profile_path)

from fastlane.

Related Issues (20)

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.