{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/4798","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/4798/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/4798/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/4798/events","html_url":"https://github.com/fastlane/fastlane/issues/4798","id":156359102,"number":4798,"title":"[Match] \"Could not install WWDR certificate\" in Travis-CI","user":{"login":"Sega-Zero","id":2203199,"avatar_url":"https://avatars.githubusercontent.com/u/2203199?v=3","gravatar_id":"","url":"https://api.github.com/users/Sega-Zero","html_url":"https://github.com/Sega-Zero","followers_url":"https://api.github.com/users/Sega-Zero/followers","following_url":"https://api.github.com/users/Sega-Zero/following{/other_user}","gists_url":"https://api.github.com/users/Sega-Zero/gists{/gist_id}","starred_url":"https://api.github.com/users/Sega-Zero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sega-Zero/subscriptions","organizations_url":"https://api.github.com/users/Sega-Zero/orgs","repos_url":"https://api.github.com/users/Sega-Zero/repos","events_url":"https://api.github.com/users/Sega-Zero/events{/privacy}","received_events_url":"https://api.github.com/users/Sega-Zero/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-05-23T20:25:52Z","updated_at":"2016-05-24T15:12:41Z","closed_at":"2016-05-24T00:36:22Z","body":"### New Issue Checklist\r\n\r\n- [x] Updated fastlane to the latest version\r\n- [x] I have read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n\r\n### Issue Description\r\nAfter upgrading to latest fastlane having a regression with match 0.6.0 when it tries to setup a new WWDR certificate (see output below). This is a very destructive way of doing keychain things, you know. I'd like to have an option to fix this automatically rather than fail right before installing my own certificates, guys. Travis [installed the new WWDR itself](https://github.com/travis-ci/travis-ci/issues/5633#issuecomment-185405389), and I don't have this issue since fastlane 1.66.0 (see #1989, [related issue](https://github.com/fastlane/fastlane/issues/2297) is still opened btw). Having a broken CI right now, what should I do to fix this?\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\n```\r\n+-----------------------+--------------------------------------------------------------------------+\r\n|                                     Summary for match 0.6.0                                      |\r\n+-----------------------+--------------------------------------------------------------------------+\r\n| verbose               | true                                                                     |\r\n| force_for_new_devices | true                                                                     |\r\n| app_identifier        | com.project.id.sample-branch            \t\t\t                |\r\n| username              | user@domain.com                                                          |\r\n| type                  | development                                                              |\r\n| git_url               | https://user:password@github.com/company/certifica... \t\t\t |\r\n| git_branch            | master                                                                   |\r\n| keychain_name         | login.keychain                                                           |\r\n| readonly              | false                                                                    |\r\n| force                 | false                                                                    |\r\n| shallow_clone         | false                                                                    |\r\n| skip_docs             | false                                                                    |\r\n+-----------------------+--------------------------------------------------------------------------+\r\nINFO [2016-05-23 20:00:20.36]: Cloning remote git repo...\r\nINFO [2016-05-23 20:00:20.36]: $ git clone 'https://user:password@github.com/company/certificates.git' '/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/d20160523-5148-1179pc1'\r\nINFO [2016-05-23 20:00:20.38]: ▸ Cloning into '/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/d20160523-5148-1179pc1'...\r\nINFO [2016-05-23 20:00:21.33]: ▸ remote: Counting objects: 2394, done.\r\nINFO [2016-05-23 20:00:21.57]: ▸ remote: Compressing objects: 100% (133/133), done.\r\nINFO [2016-05-23 20:00:35.31]: ▸ remote: Total 2394 (delta 6), reused 0 (delta 0), pack-reused 2261\r\nINFO [2016-05-23 20:00:35.31]: ▸ Receiving objects: 100% (2394/2394), 12.39 MiB | 869.00 KiB/s, done.\r\nINFO [2016-05-23 20:00:35.31]: ▸ Resolving deltas: 100% (185/185), done.\r\nINFO [2016-05-23 20:00:35.43]: ▸ Checking connectivity... done.\r\nINFO [2016-05-23 20:00:35.47]:   Decrypted ‘ABCDEFGHIJ.cer'\r\nINFO [2016-05-23 20:00:35.48]:   Decrypted ‘KLMNOPQRST.cer'\r\nINFO [2016-05-23 20:00:35.49]:   Decrypted ‘UVWXYZ0123.p12'\r\nINFO [2016-05-23 20:00:35.50]:   Decrypted ‘456789ABCD.p12'\r\nINFO [2016-05-23 20:00:35.50]:   Decrypted 'AppStore_com.project.id.mobileprovision'\r\nINFO [2016-05-23 20:00:35.51]:   Decrypted 'Development_com.project.id.develop.mobileprovision'\r\nINFO [2016-05-23 20:00:35.72]:   Decrypted 'Development_com.project.id.feature-sample-branch.mobileprovision'\r\nINFO [2016-05-23 20:00:35.77]:   Decrypted 'Development_com.project.id.mobileprovision'\r\nINFO [2016-05-23 20:00:35.77]:   Successfully decrypted certificates repo\r\nINFO [2016-05-23 20:00:35.77]: Verifying that the certificate and profile are still valid on the Dev Portal...\r\nINFO [2016-05-23 20:00:39.64]: Installing certificate...\r\nINFO [2016-05-23 20:00:39.64]: $ security list-keychains -d user\r\nINFO [2016-05-23 20:00:39.65]: ▸     \"/Users/travis/Library/Keychains/login.keychain\"\r\nINFO [2016-05-23 20:00:39.65]: $ security find-certificate -c 'Apple Worldwide Developer Relations Certification Authority' /Users/travis/Library/Keychains/login.keychain\r\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\r\nINFO [2016-05-23 20:00:39.72]: $ security list-keychains -d user\r\nINFO [2016-05-23 20:00:39.73]: ▸     \"/Users/travis/Library/Keychains/login.keychain\"\r\nINFO [2016-05-23 20:00:39.73]: $ curl -O https://developer.apple.com/certificationauthority/AppleWWDRCA.cer && security import AppleWWDRCA.cer -k\\ /Users/travis/Library/Keychains/login.keychain\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100  1062  100  1062    0     0   1812      0 --:--:-- --:--:-- --:--:--  1812\r\nsecurity: SecKeychainItemImport: The specified keychain could not be found.\r\nINFO [2016-05-23 20:00:40.39]:   Successfully encrypted certificates repo\r\n/Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/fastlane_core-0.44.0/lib/fastlane_core/ui/interface.rb:139:in `user_error!': [!] Could not install WWDR certificate (FastlaneCore::Interface::FastlaneError)\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/fastlane_core-0.44.0/lib/fastlane_core/ui/ui.rb:14:in `method_missing'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/fastlane_core-0.44.0/lib/fastlane_core/cert_checker.rb:63:in `block in install_wwdr_certificate'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/fastlane_core-0.44.0/lib/fastlane_core/cert_checker.rb:57:in `chdir'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/fastlane_core-0.44.0/lib/fastlane_core/cert_checker.rb:57:in `install_wwdr_certificate'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/fastlane_core-0.44.0/lib/fastlane_core/cert_checker.rb:19:in `installed_identies'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/fastlane_core-0.44.0/lib/fastlane_core/cert_checker.rb:7:in `installed?'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/match-0.6.0/lib/match/runner.rb:55:in `certificate'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/match-0.6.0/lib/match/runner.rb:17:in `run'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/match-0.6.0/lib/match/commands_generator.rb:55:in `block (3 levels) in run'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/fastlane_core-0.44.0/lib/fastlane_core/ui/fastlane_runner.rb:26:in `run!'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/match-0.6.0/lib/match/commands_generator.rb:121:in `run'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/match-0.6.0/lib/match/commands_generator.rb:12:in `start'\r\n\tfrom /Users/travis/build/company/iOS/vendor/bundle/ruby/2.0.0/gems/match-0.6.0/bin/match:6:in `<top (required)>'\r\n\tfrom /Users/travis/.rvm/gems/ruby-2.0.0-p643/bin/match:23:in `load'\r\n\tfrom /Users/travis/.rvm/gems/ruby-2.0.0-p643/bin/match:23:in `<main>'\r\n\tfrom /Users/travis/.rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:in `eval'\r\n\tfrom /Users/travis/.rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:in `<main>'\r\n```\r\n\r\n### Configuration Files\r\n\r\nPlease copy the complete content of your `Fastfile` and any other configuration files you use below:\r\n\r\nFastfile:\r\n```ruby\r\n...\r\nmatch_type = options[:beta] ? \"development\" : \"appstore\"\r\nmatch(type: match_type, app_identifier: proj_id, force_for_new_devices: true)\r\n...\r\n```\r\n\r\n### Environment\r\n\r\nfastlane version (run `fastlane -v`):\r\n1.90.0\r\n\r\nDo you use bundler to execute fastlane (i.e. `bundle exec fastlane`)?\r\nbundle\r\n\r\nDo you use a Ruby environment manager (e.g. `chruby`, `rbenv`, `rvm`)?\r\nrvm, ruby-2.0.0-p643"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/221303254","html_url":"https://github.com/fastlane/fastlane/issues/4798#issuecomment-221303254","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/4798","id":221303254,"user":{"login":"Sega-Zero","id":2203199,"avatar_url":"https://avatars.githubusercontent.com/u/2203199?v=3","gravatar_id":"","url":"https://api.github.com/users/Sega-Zero","html_url":"https://github.com/Sega-Zero","followers_url":"https://api.github.com/users/Sega-Zero/followers","following_url":"https://api.github.com/users/Sega-Zero/following{/other_user}","gists_url":"https://api.github.com/users/Sega-Zero/gists{/gist_id}","starred_url":"https://api.github.com/users/Sega-Zero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sega-Zero/subscriptions","organizations_url":"https://api.github.com/users/Sega-Zero/orgs","repos_url":"https://api.github.com/users/Sega-Zero/repos","events_url":"https://api.github.com/users/Sega-Zero/events{/privacy}","received_events_url":"https://api.github.com/users/Sega-Zero/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T15:12:41Z","updated_at":"2016-05-24T15:12:41Z","body":"I mentioned this problem in #1989 and #2297, this warning appears in the log if keychain does not contain any certificates."}}
{"actor":{"display_login":"Sega-Zero"}}