fastlane: Match can't find certificate in repo if run again.
New Issue Checklist
- [x ] Updated fastlane to the latest version
- [ x] I read the Contribution Guidelines
- [ x] I read docs.fastlane.tools
- [ x] I searched for existing GitHub issues
Issue Description
I can run fastlane match development and it will generate and upload certificates to the repo. But if I run it again I get Couldn't find a valid code signing identity in the git repo for development.
Complete output when running fastlane, including the stack trace and command used
You can use:
--capture_output
as the last commandline argument to get that collected for you
fastlane match development
[14:38:06]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[14:38:08]: Successfully loaded '/Users/ddrboxman/Development/swiftstar/iOS-Driver-new/fastlane/Matchfile' 📄
+---------+--------------------------------------+
| Detected Values from './fastlane/Matchfile' |
+---------+--------------------------------------+
| git_url | git@github.com:swiftstario/certific |
| | ates.git |
| type | development |
+---------+--------------------------------------+
+-----------------------+--------------------------------------+
| Summary for match 2.60.0 |
+-----------------------+--------------------------------------+
| git_url | git@github.com:swiftstario/certific |
| | ates.git |
| type | development |
| git_branch | master |
| app_identifier | io.swiftstar.swiftstardriver |
| username | ddrboxman@gmail.com |
| keychain_name | login.keychain |
| readonly | false |
| team_id | X9U7EAVQ73 |
| verbose | false |
| force | false |
| skip_confirmation | false |
| shallow_clone | false |
| clone_branch_directly | false |
| force_for_new_devices | false |
| skip_docs | false |
| platform | ios |
+-----------------------+--------------------------------------+
[14:38:08]: Cloning remote git repo...
[14:38:08]: If cloning the repo takes too long, you can use the `clone_branch_directly` option in match.
[14:38:09]: 🔓 Successfully decrypted certificates repo
[14:38:09]: Verifying that the certificate and profile are still valid on the Dev Portal...
[14:38:11]: Couldn't find a valid code signing identity in the git repo for development... creating one for you now
+---------------+--------------------------------------+
| Summary for cert 2.60.0 |
+---------------+--------------------------------------+
| development | true |
| force | true |
| username | ddrboxman@gmail.com |
| team_id | X9U7EAVQ73 |
| keychain_path | /Users/ddrboxman/Library/Keychains/ |
| | login.keychain-db |
| platform | ios |
+---------------+--------------------------------------+
[14:38:11]: Starting login with user 'ddrboxman@gmail.com'
[14:38:12]: Successfully logged in
Looking for related GitHub issues on fastlane/fastlane...
➡️ match failed in development
https://github.com/fastlane/fastlane/issues/9215 [closed] 8 💬
a week ago
➡️ [match] Ignoring file when decrypting certificates repo
https://github.com/fastlane/fastlane/issues/9400 [closed] 5 💬
4 weeks ago
➡️ Using Match with already existing profiles and certificates
https://github.com/fastlane/fastlane/issues/8591 [closed] 9 💬
07 Jul 2017
and 20 more at: https://github.com/fastlane/fastlane/search?q=Could%20not%20create%20another%20Development%20certificate,%20reached%20the%20maximum%20number%20of%20available%20Development%20certificates.&type=Issues&utf8=✓
🔗 You can ⌘ + double-click on links to open them directly in your browser.
[!] Could not create another Development certificate, reached the maximum number of available Development certificates.
Environment
Please run fastlane env
and copy the output below. This will help us help you 👍
If you used --capture_output
option please remove this block - as it is already included there.
✅ fastlane environment ✅
Stack
Key | Value |
---|---|
OS | 10.12.6 |
Ruby | 2.2.4 |
Bundler? | false |
Git | git version 2.11.0 |
Installation Source | ~/.fastlane/bin/bundle/bin/fastlane |
Host | Mac OS X 10.12.6 (16G29) |
Ruby Lib Dir | ~/.fastlane/bin/bundle/lib |
OpenSSL Version | OpenSSL 1.0.2g 1 Mar 2016 |
Is contained | false |
Is homebrew | true |
Is installed via Fabric.app | false |
Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
Xcode Version | 9.0 |
System Locale
Variable | Value | |
---|---|---|
LANG | en_US.UTF-8 | ✅ |
LC_ALL | en_US.UTF-8 | ✅ |
LANGUAGE | en_US.UTF-8 | ✅ |
fastlane files:
`./fastlane/Fastfile`
# Customise this file, documentation can be found here:
# https://docs.fastlane.tools/actions/
# All available actions: https://docs.fastlane.tools/actions
# can also be listed using the `fastlane actions` command
# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`
# If you want to automatically update fastlane if a new version is available:
# update_fastlane
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "2.60.0"
default_platform :ios
platform :ios do
before_all do
# ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
cocoapods
# carthage
end
desc "Runs all the tests"
lane :test do
scan
end
desc "Submit a new Beta Build to Apple TestFlight"
desc "This will also make sure the profile is up to date"
lane :beta do
# match(type: "appstore") # more information: https://codesigning.guide
gym(scheme: "SwiftstarDriver") # Build your app - more options available
pilot
# sh "your_script.sh"
# You can also use other beta testing services here (run `fastlane actions`)
end
desc "Deploy a new version to the App Store"
lane :release do
# match(type: "appstore")
# snapshot
gym(scheme: "SwiftstarDriver") # Build your app - more options available
deliver(force: true)
# frameit
end
# You can define as many lanes as you want
after_all do |lane|
# This block is called, only if the executed lane was successful
# slack(
# message: "Successfully deployed new App Update."
# )
end
error do |lane, exception|
# slack(
# message: exception.message,
# success: false
# )
end
end
# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
# All available actions: https://docs.fastlane.tools/actions
# fastlane reports which actions are used. No personal data is recorded.
# Learn more at https://github.com/fastlane/fastlane#metrics
`./fastlane/Appfile`
app_identifier "io.swiftstar.swiftstardriver" # The bundle identifier of your app
apple_id "ddrboxman@gmail.com" # Your Apple email address
team_id "X9U7EAVQ73" # Developer Portal Team ID
# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md
fastlane gems
Gem | Version | Update-Status |
---|---|---|
fastlane | 2.60.0 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
Gem | Version |
---|---|
slack-notifier | 1.5.1 |
CFPropertyList | 2.3.5 |
claide | 1.0.2 |
colored2 | 3.1.2 |
nanaimo | 0.2.3 |
xcodeproj | 1.5.2 |
rouge | 1.11.1 |
xcpretty | 0.2.6 |
terminal-notifier | 1.7.1 |
unicode-display_width | 1.1.3 |
terminal-table | 1.7.3 |
plist | 3.2.0 |
public_suffix | 2.0.5 |
addressable | 2.5.1 |
multipart-post | 2.0.0 |
word_wrap | 1.0.0 |
tty-screen | 0.5.0 |
babosa | 1.0.2 |
colored | 1.2 |
highline | 1.7.8 |
commander-fastlane | 4.4.5 |
excon | 0.55.0 |
faraday | 0.12.1 |
unf_ext | 0.0.7.4 |
unf | 0.1.4 |
domain_name | 0.5.20170404 |
http-cookie | 1.0.3 |
faraday-cookie_jar | 0.0.6 |
fastimage | 2.1.0 |
gh_inspector | 1.0.3 |
json | 1.8.1 |
mini_magick | 4.5.1 |
multi_json | 1.12.1 |
multi_xml | 0.6.0 |
rubyzip | 1.2.1 |
security | 0.1.3 |
xcpretty-travis-formatter | 0.0.4 |
dotenv | 2.2.0 |
bundler | 1.14.6 |
faraday_middleware | 0.11.0.1 |
uber | 0.0.15 |
declarative | 0.0.10 |
declarative-option | 0.1.0 |
representable | 3.0.4 |
retriable | 2.1.0 |
mime-types-data | 3.2016.0521 |
mime-types | 3.1 |
little-plugger | 1.1.4 |
logging | 2.2.2 |
jwt | 1.5.6 |
memoist | 0.15.0 |
os | 0.9.6 |
signet | 0.7.3 |
googleauth | 0.5.1 |
httpclient | 2.8.3 |
google-api-client | 0.13.6 |
generated on: 2017-10-03
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 31 (9 by maintainers)
Hey guys Still the problem with the last version 2.68.0 of cert
It seems like this issue might be related to code signing 🚫
Have you seen our new Code Signing Troubleshooting Guide? It will help you resolve the most common code signing issues 👍
I have 2.61 and I still have the same issue.
Alright, I got a fix ready https://github.com/fastlane/fastlane/pull/10516 👍
@KrauseFx I’m trying this on 2.60.1 but it doesn’t seem to be working. Match can’t find the existing profile and won’t create a new one because it reached the maximum number of profiles (even though there’s only one on the developer portal). Any thought? I might me doing something wrong as this is my first attempt at Match.
Hello, i have the same issue. Version: fastlane-2.81.0 I am using one git repo for match, in this i have more branches, 1 branch for 1 project’s certs/profiles. What i have done: First i cleared all my distribution certificates from member center and keychain, than i run match successfully but when i tried it for the second time, for a different project i got this error with having only 1 distribution certificate.
bundle exec fastlane match enterprise --verbose [✔] 🚀 INFO [2018-02-15 16:35:48.90]: Successfully loaded ‘/Users/jenkins/Documents/xcodeProjects/Levendula/fastlane/Matchfile’ 📄
±---------------±--------------------------------------+ | Detected Values from ‘./fastlane/Matchfile’ | ±---------------±--------------------------------------+ | git_url | git@gitlab…com:ios-council/ | | | MatchTest.git | | app_identifier | com.company.Levendula | | username | deploy@company.com | | git_branch | Levendula | ±---------------±--------------------------------------+
±----------------------±--------------------------------------+ | Summary for match 2.81.0 | ±----------------------±--------------------------------------+ | verbose | true | | type | enterprise | | git_url | git@gitlab.company.com:ios-council/ | | | MatchTest.git | | git_branch | Levendula | | app_identifier | [“com.company.Levendula”] | | username | deploy@company.com | | keychain_name | login.keychain | | readonly | false | | force | false | | skip_confirmation | false | | shallow_clone | false | | clone_branch_directly | false | | force_for_new_devices | false | | skip_docs | false | | platform | ios | ±----------------------±--------------------------------------+
INFO [2018-02-15 16:35:48.93]: Cloning remote git repo… INFO [2018-02-15 16:35:48.93]: If cloning the repo takes too long, you can use the
clone_branch_directly
option in match. INFO [2018-02-15 16:35:48.93]: $ GIT_TERMINAL_PROMPT=0 git clone ‘git@gitlab.company.com:ios-council/MatchTest.git’ ‘/var/folders/_7/4kwtmql55qlf99pttvtc0jhr0000gs/T/d20180215-73332-1u0bdyj’ INFO [2018-02-15 16:35:48.94]: ▸ Cloning into ‘/var/folders/_7/4kwtmql55qlf99pttvtc0jhr0000gs/T/d20180215-73332-1u0bdyj’… INFO [2018-02-15 16:35:50.28]: ▸ remote: Counting objects: 43, done. INFO [2018-02-15 16:35:50.33]: ▸ remote: Compressing objects: 100% (32/32), done. INFO [2018-02-15 16:35:50.37]: ▸ remote: Total 43 (delta 4), reused 31 (delta 2) INFO [2018-02-15 16:35:50.45]: ▸ Receiving objects: 100% (43/43), 53.26 KiB | 426.00 KiB/s, done. INFO [2018-02-15 16:35:50.45]: ▸ Resolving deltas: 100% (4/4), done. INFO [2018-02-15 16:35:50.50]: $ git --no-pager branch --list origin/Levendula --no-color -r INFO [2018-02-15 16:35:50.51]: Checking out branch Levendula… INFO [2018-02-15 16:35:50.51]: $ git checkout --orphan Levendula INFO [2018-02-15 16:35:50.52]: ▸ Switched to a new branch ‘Levendula’ INFO [2018-02-15 16:35:50.52]: $ git reset --hard INFO [2018-02-15 16:35:50.53]: 🔓 Successfully decrypted certificates repo INFO [2018-02-15 16:35:50.57]: Verifying that the certificate and profile are still valid on the Dev Portal… Multiple teams found on the Developer Portal, please enter the number of the team you want to use:±--------------±--------------------------------------+ | Summary for cert 2.81.0 | ±--------------±--------------------------------------+ | development | false | | force | true | | username | deploy@company.com | | keychain_path | /Users/jenkins/Library/Keychains/log | | | in.keychain-db | | platform | ios | ±--------------±--------------------------------------+
INFO [2018-02-15 16:35:55.68]: Starting login with user ‘deploy@company.com’ Multiple teams found on the Developer Portal, please enter the number of the team you want to use:
Looking for related GitHub issues on fastlane/fastlane… Search query: Could not create another Distribution certificate, reached the maximum number of available Distribution certificates.
URL: https://api.github.com/search/issues?q=Could not create another Distribution certificate%2C reached the maximum number of available Distribution certificates.+repo:fastlane/fastlane ➡️ Match can’t find certificate in repo if run again. https://github.com/fastlane/fastlane/issues/10489 [open] 28 💬 a week ago
➡️ [match] Ignoring file when decrypting certificates repo https://github.com/fastlane/fastlane/issues/9400 [closed] 5 💬 07 Sep 2017
➡️ How can I use ‘match’ to upload my existing distribution cert/key instead of creating a new one on portal? https://github.com/fastlane/fastlane/issues/8873 [closed] 3 💬 11 Sep 2017
and 16 more at: https://github.com/fastlane/fastlane/search?q=Could not create another Distribution certificate%2C reached the maximum number of available Distribution certificates.&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::FastlaneError: [!] Could not create another Distribution certificate, reached the maximum number of available Distribution certificates. /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/fastlane_core/lib/fastlane_core/ui/interface.rb:133:in
user_error!' /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/fastlane_core/lib/fastlane_core/ui/ui.rb:16:in
method_missing’ /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/cert/lib/cert/runner.rb:158:inrescue in create_certificate' /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/cert/lib/cert/runner.rb:153:in
create_certificate’ /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/cert/lib/cert/runner.rb:44:inrun' /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/cert/lib/cert/runner.rb:13:in
launch’ /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/match/lib/match/generator.rb:25:ingenerate_certificate' /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/match/lib/match/runner.rb:100:in
fetch_certificate’ /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/match/lib/match/runner.rb:57:inrun' /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/match/lib/match/commands_generator.rb:61:in
block (3 levels) in run’ /usr/local/lib/ruby/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:incall' /usr/local/lib/ruby/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in
run’ /usr/local/lib/ruby/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:inrun_active_command' /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:75:in
run!’ /usr/local/lib/ruby/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:inrun!' /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/match/lib/match/commands_generator.rb:146:in
run’ /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/match/lib/match/commands_generator.rb:19:instart' /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/fastlane/lib/fastlane/cli_tools_distributor.rb:90:in
take_off’ /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.81.0/bin/fastlane:20:in<top (required)>' /usr/local/bin/fastlane:23:in
load’ /usr/local/bin/fastlane:23:in `<top (required)>’I’m having the exact same issue in 2.60.0