fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps
https://fastlane.tools
MIT License
39.42k stars 5.67k forks source link

Match for Jenkins, provisioning profile could not be found when using readonly #3444

Closed fastlanebot closed 8 years ago

fastlanebot commented 8 years ago
Original issue by @bartoszhernas - Imported from fastlane/match#52

Hey, I have problem configuring match on Jenkins. I though that I can generate all certs and provisioning profiles on my mac, it will be pushed and then jenkins can just fetch it (with readonly parameter).

Am I missing something? It fails also when I execute match command via ssh or vnc, not via jenkins.

This is output from my local machine where I have write access to repo:

$ match appstore

+----------------+----------------------------------------------+
|                    Summary for match 0.1.2                    |
+----------------+----------------------------------------------+
| git_url        | git@bitbucket.org:whatsahoy/certificates.git |
| type           | appstore                                     |
| app_identifier | com.whatsahoy.Ahoy                           |
| username       | bartosz@hernas.pl                            |
| keychain_name  | login.keychain                               |
| readonly       | false                                        |
| team_id        | F696942EFS                                   |
| team_name      | Hernas Limited                               |
| verbose        | false                                        |
| force          | false                                        |
+----------------+----------------------------------------------+

[23:20:30]: Cloning remote git repo...
[23:20:36]: 🔓  Successfully decrypted certificates repo
[23:20:36]: Verifying that the certificate and profile are still valid on the Dev Portal...
[23:21:37]: Couldn't find a valid code signing identity in the git repo for distribution... creating one for you now

+-------------+--------------------------------------------------------------------------------------------+
|                                          Summary for cert 1.2.7                                          |
+-------------+--------------------------------------------------------------------------------------------+
| development | false                                                                                      |
| force       | true                                                                                       |
| username    | bartosz@hernas.pl                                                                          |
| team_id     | F696942EFS                                                                                 |
| team_name   | Hernas Limited                                                                             |
| output_path | /var/folders/_z/mdbp6hlj2798z1sbyqjkt9100000gn/T/d20151224-52957-p9j4wd/certs/distribution |
+-------------+--------------------------------------------------------------------------------------------+

[23:21:37]: Starting login with user 'bartosz@hernas.pl'
[23:21:40]: Successfully logged in
[23:21:48]: security import /var/folders/_z/mdbp6hlj2798z1sbyqjkt9100000gn/T/d20151224-52957-p9j4wd/certs/distribution/TD45XZ6PRW.p12 -k '/Users/bartg/Library/Keychains/login.keychain' -T /usr/bin/codesign -T /usr/bin/security
[23:21:48]: 1 key imported.

[23:21:48]: security import /var/folders/_z/mdbp6hlj2798z1sbyqjkt9100000gn/T/d20151224-52957-p9j4wd/certs/distribution/TD45XZ6PRW.cer -k '/Users/bartg/Library/Keychains/login.keychain' -T /usr/bin/codesign -T /usr/bin/security
[23:21:48]: 1 certificate imported.

[23:21:48]: Successfully generated TD45XZ6PRW which was imported to the local machine.

+-------------------------------------+-----------------------------------+
|                         Summary for sigh 1.2.1                          |
+-------------------------------------+-----------------------------------+
| adhoc                               | false                             |
| skip_install                        | false                             |
| development                         | false                             |
| force                               | true                              |
| app_identifier                      | com.whatsahoy.Ahoy                |
| username                            | bartosz@hernas.pl                 |
| team_id                             | F696942EFS                        |
| team_name                           | Hernas Limited                    |
| provisioning_name                   | match AppStore com.whatsahoy.Ahoy |
| ignore_profiles_with_different_name | true                              |
| cert_id                             | TD45XZ6PRW                        |
| skip_fetch_profiles                 | false                             |
| skip_certificate_verification       | false                             |
+-------------------------------------+-----------------------------------+

[23:21:56]: Starting login with user 'bartosz@hernas.pl'
[23:21:58]: Successfully logged in
[23:21:58]: Fetching profiles...
[23:22:00]: No existing profiles, creating a new one for you
[23:22:11]: Creating new provisioning profile for 'com.whatsahoy.Ahoy' with name 'match AppStore com.whatsahoy.Ahoy'
[23:22:16]: Downloading provisioning profile...
[23:22:19]: Successfully downloaded provisioning profile...
[23:22:20]: Installing provisioning profile...
/var/folders/_z/mdbp6hlj2798z1sbyqjkt9100000gn/T/d20151224-52957-p9j4wd/profiles/appstore/AppStore_com.whatsahoy.Ahoy.mobileprovision
[23:22:20]: Installing provisioning profile...
[23:22:21]: Enter the passphrase that should be used to encrypt/decrypt your certificates
[23:22:21]: This passphrase is specific per repository and will be stored in your local keychain
[23:22:21]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo: **************************************************
[23:22:29]: 🔒  Successfully encrypted certificates repo
[23:22:29]: Pushing changes to remote git repo...

+----------------------+--------------------------------------+
|               Installed Provisioning Profile                |
+----------------------+--------------------------------------+
| App Identifier       | com.whatsahoy.Ahoy                   |
| Type                 | appstore                             |
| UUID                 | 97faf9f7-f4fd-4a5a-a981-9ed1c95ef5d0 |
| Environment Variable | sigh_com.whatsahoy.Ahoy_appstore     |
+----------------------+--------------------------------------+

[23:22:32]: All required keys, certificates and provisioning profiles are installed 🙌

#######################################################################
# match 0.2.2 is available. You are on 0.1.2.
# It is recommended to use the latest version.
# Update using 'sudo gem update match'.
#######################################################################

0.2.2 Fixed nuke command
Fixed `match nuke` command not working

0.2.1 Improved first run experience
Improved the handling of empty repos

0.2.0 Change Password
- You can now run `match change_password` to re-encrypt your repo with a different password
- Fixed a bug where an empty password was used for encryption instead of the actual one
- Added auto-migration of wrongly encrypted repos, so you don't have to do anything
- Added new `shallow_clone` in case your git repo makes problems

To see all new releases, open https://github.com/fastlane/match/releases

Update using 'sudo gem update match'

And this is from Jenkins, where there is --readonly:

mini:ahoy.ios.rc jenkins$ match appstore --readonly

+----------------+----------------------------------------------+
|                    Summary for match 0.1.2                    |
+----------------+----------------------------------------------+
| git_url        | git@bitbucket.org:whatsahoy/certificates.git |
| type           | appstore                                     |
| app_identifier | com.whatsahoy.Ahoy                           |
| username       | bartosz@hernas.pl                            |
| keychain_name  | login.keychain                               |
| readonly       | true                                         |
| team_id        | F696942EFS                                   |
| team_name      | Hernas Limited                               |
| verbose        | false                                        |
| force          | false                                        |
+----------------+----------------------------------------------+

[23:29:35]: Cloning remote git repo...
[23:29:37]: 🔓  Successfully decrypted certificates repo
[23:29:37]: Installing certificate...
[23:29:40]: 🔒  Successfully encrypted certificates repo

#######################################################################
# match 0.2.2 is available. You are on 0.1.2.
# It is recommended to use the latest version.
# Update using 'sudo gem update match'.
#######################################################################

0.2.2 Fixed nuke command
Fixed `match nuke` command not working

0.2.1 Improved first run experience
Improved the handling of empty repos

0.2.0 Change Password
- You can now run `match change_password` to re-encrypt your repo with a different password
- Fixed a bug where an empty password was used for encryption instead of the actual one
- Added auto-migration of wrongly encrypted repos, so you don't have to do anything
- Added new `shallow_clone` in case your git repo makes problems

To see all new releases, open https://github.com/fastlane/match/releases

Update using 'sudo gem update match'
/usr/local/lib/ruby/gems/2.2.0/gems/fastlane_core-0.31.0/lib/fastlane_core/ui/implementations/shell.rb:110:in `crash!': No matching provisioning profiles found and can not create a new one because you enabled `readonly` (RuntimeError)
    from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane_core-0.31.0/lib/fastlane_core/ui/ui.rb:14:in `method_missing'
    from /usr/local/lib/ruby/gems/2.2.0/gems/match-0.1.2/lib/match/runner.rb:77:in `profile'
    from /usr/local/lib/ruby/gems/2.2.0/gems/match-0.1.2/lib/match/runner.rb:21:in `run'
    from /usr/local/lib/ruby/gems/2.2.0/gems/match-0.1.2/bin/match:50:in `block (3 levels) in run'
    from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
    from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /usr/local/lib/ruby/gems/2.2.0/gems/match-0.1.2/bin/match:94:in `run'
    from /usr/local/lib/ruby/gems/2.2.0/gems/match-0.1.2/bin/match:101:in `<top (required)>'
    from /usr/local/bin/match:23:in `load'
    from /usr/local/bin/match:23:in `<main>'
mini:ahoy.ios.rc jenkins$ 
fastlanebot commented 8 years ago
@KrauseFx commented

This should work. Could you update to the latest version and re-run it on your local machine? Also, please share the output when running --verbose on both machines, so I can see the files that are stored in your git repo.

fastlanebot commented 8 years ago
@bartoszhernas commented

I have tried both versions. Here is output

local machine:

$ match appstore --verbose

+----------------+----------------------------------------------+
|                    Summary for match 0.2.4                    |
+----------------+----------------------------------------------+
| git_url        | git@bitbucket.org:whatsahoy/certificates.git |
| type           | appstore                                     |
| app_identifier | com.whatsahoy.Ahoy                           |
| username       | bartosz@hernas.pl                            |
| keychain_name  | login.keychain                               |
| readonly       | false                                        |
| team_id        | F696942EFS                                   |
| team_name      | Hernas Limited                               |
| verbose        | true                                         |
| force          | false                                        |
| shallow_clone  | true                                         |
+----------------+----------------------------------------------+

INFO [2016-01-02 14:43:21.48]: Cloning remote git repo...
INFO [2016-01-02 14:43:21.48]: $ git clone 'git@bitbucket.org:whatsahoy/certificates.git' '/var/folders/_z/mdbp6hlj2798z1sbyqjkt9100000gn/T/d20160102-96630-ta9uy7' --depth 1
INFO [2016-01-02 14:43:21.49]: > Cloning into '/var/folders/_z/mdbp6hlj2798z1sbyqjkt9100000gn/T/d20160102-96630-ta9uy7'...
INFO [2016-01-02 14:43:23.62]: > remote: Counting objects: 19, done.
INFO [2016-01-02 14:43:23.75]: > remote: Compressing objects: 100% (19/19), done.
INFO [2016-01-02 14:43:23.92]: > remote: Total 19 (delta 0), reused 0 (delta 0)
INFO [2016-01-02 14:43:23.92]: > Receiving objects: 100% (19/19), 53.67 KiB | 0 bytes/s, done.
INFO [2016-01-02 14:43:23.93]: > Checking connectivity... done.
WARN [2016-01-02 14:43:23.94]: Migrating to new match...
INFO [2016-01-02 14:43:23.97]: 🔒  Successfully encrypted certificates repo
INFO [2016-01-02 14:43:23.97]: Cloning remote git repo...
INFO [2016-01-02 14:43:23.97]: $ git clone 'git@bitbucket.org:whatsahoy/certificates.git' '/var/folders/_z/mdbp6hlj2798z1sbyqjkt9100000gn/T/d20160102-96630-a9o1xh' --depth 1
INFO [2016-01-02 14:43:23.98]: > Cloning into '/var/folders/_z/mdbp6hlj2798z1sbyqjkt9100000gn/T/d20160102-96630-a9o1xh'...
INFO [2016-01-02 14:43:26.56]: > remote: Counting objects: 19, done.
INFO [2016-01-02 14:43:26.68]: > remote: Compressing objects: 100% (19/19), done.
INFO [2016-01-02 14:43:26.86]: > remote: Total 19 (delta 0), reused 0 (delta 0)
INFO [2016-01-02 14:43:26.86]: > Receiving objects: 100% (19/19), 53.67 KiB | 0 bytes/s, done.
INFO [2016-01-02 14:43:26.87]: > Checking connectivity... done.
INFO [2016-01-02 14:43:26.89]: 🔓  Decrypted '569WPTQPCX.cer'
INFO [2016-01-02 14:43:26.89]: 🔓  Decrypted 'TD45XZ6PRW.cer'
INFO [2016-01-02 14:43:26.90]: 🔓  Decrypted '569WPTQPCX.p12'
INFO [2016-01-02 14:43:26.91]: 🔓  Decrypted 'TD45XZ6PRW.p12'
INFO [2016-01-02 14:43:26.91]: 🔓  Decrypted 'AppStore_com.whatsahoy.Ahoy.mobileprovision'
INFO [2016-01-02 14:43:26.92]: 🔓  Decrypted 'AppStore_com.whatsahoy.AhoyDEV.mobileprovision'
INFO [2016-01-02 14:43:26.92]: 🔓  Decrypted 'AppStore_com.whatsahoy.AhoyRC.mobileprovision'
INFO [2016-01-02 14:43:26.93]: 🔓  Decrypted 'Development_com.whatsahoy.Ahoy.mobileprovision'
INFO [2016-01-02 14:43:26.94]: 🔓  Decrypted 'Development_com.whatsahoy.AhoyDEV.mobileprovision'
INFO [2016-01-02 14:43:26.94]: 🔓  Decrypted 'Development_com.whatsahoy.AhoyRC.mobileprovision'
INFO [2016-01-02 14:43:26.94]: 🔓  Successfully decrypted certificates repo
keychain: "/Users/bartg/Library/Keychains/login.keychain"
class: "inet"
attributes:
    0x00000007 <blob>="match_git@bitbucket.org:whatsahoy/certificates.git"
    0x00000008 <blob>=<NULL>
    "acct"<blob>=<NULL>
    "atyp"<blob>="dflt"
    "cdat"<timedate>=0x32303135313232343232323232395A00  "20151224222229Z\000"
    "crtr"<uint32>=<NULL>
    "cusi"<sint32>=<NULL>
    "desc"<blob>=<NULL>
    "icmt"<blob>=<NULL>
    "invi"<sint32>=<NULL>
    "mdat"<timedate>=0x32303135313232343232323232395A00  "20151224222229Z\000"
    "nega"<sint32>=<NULL>
    "path"<blob>=<NULL>
    "port"<uint32>=0x00000000
    "prot"<blob>=<NULL>
    "ptcl"<uint32>=0x00000000
    "scrp"<sint32>=<NULL>
    "sdmn"<blob>=<NULL>
    "srvr"<blob>="match_git@bitbucket.org:whatsahoy/certificates.git"
    "type"<uint32>=<NULL>
password has been deleted.
INFO [2016-01-02 14:43:27.10]: 🔒  Encrypted '569WPTQPCX.cer'
INFO [2016-01-02 14:43:27.13]: 🔒  Encrypted 'TD45XZ6PRW.cer'
INFO [2016-01-02 14:43:27.16]: 🔒  Encrypted '569WPTQPCX.p12'
INFO [2016-01-02 14:43:27.19]: 🔒  Encrypted 'TD45XZ6PRW.p12'
INFO [2016-01-02 14:43:27.22]: 🔒  Encrypted 'AppStore_com.whatsahoy.Ahoy.mobileprovision'
INFO [2016-01-02 14:43:27.25]: 🔒  Encrypted 'AppStore_com.whatsahoy.AhoyDEV.mobileprovision'
INFO [2016-01-02 14:43:27.28]: 🔒  Encrypted 'AppStore_com.whatsahoy.AhoyRC.mobileprovision'
INFO [2016-01-02 14:43:27.31]: 🔒  Encrypted 'Development_com.whatsahoy.Ahoy.mobileprovision'
INFO [2016-01-02 14:43:27.34]: 🔒  Encrypted 'Development_com.whatsahoy.AhoyDEV.mobileprovision'
INFO [2016-01-02 14:43:27.38]: 🔒  Encrypted 'Development_com.whatsahoy.AhoyRC.mobileprovision'
INFO [2016-01-02 14:43:27.38]: 🔒  Successfully encrypted certificates repo
INFO [2016-01-02 14:43:27.38]: Pushing changes to remote git repo...
INFO [2016-01-02 14:43:27.38]: $ git add -A
INFO [2016-01-02 14:43:27.39]: $ git commit -m '[fastlane] Changed passphrase'
INFO [2016-01-02 14:43:27.42]: > [master 46739fe] [fastlane] Changed passphrase
INFO [2016-01-02 14:43:27.43]: > 11 files changed, 1084 insertions(+), 1083 deletions(-)
INFO [2016-01-02 14:43:27.43]: > rewrite certs/development/569WPTQPCX.cer (98%)
INFO [2016-01-02 14:43:27.43]: > rewrite certs/development/569WPTQPCX.p12 (98%)
INFO [2016-01-02 14:43:27.43]: > rewrite certs/distribution/TD45XZ6PRW.cer (98%)
INFO [2016-01-02 14:43:27.43]: > rewrite certs/distribution/TD45XZ6PRW.p12 (98%)
INFO [2016-01-02 14:43:27.43]: > create mode 100644 match_version.txt
INFO [2016-01-02 14:43:27.43]: > rewrite profiles/appstore/AppStore_com.whatsahoy.Ahoy.mobileprovision (98%)
INFO [2016-01-02 14:43:27.43]: > rewrite profiles/appstore/AppStore_com.whatsahoy.AhoyDEV.mobileprovision (98%)
INFO [2016-01-02 14:43:27.43]: > rewrite profiles/appstore/AppStore_com.whatsahoy.AhoyRC.mobileprovision (98%)
INFO [2016-01-02 14:43:27.43]: > rewrite profiles/development/Development_com.whatsahoy.Ahoy.mobileprovision (98%)
INFO [2016-01-02 14:43:27.43]: > rewrite profiles/development/Development_com.whatsahoy.AhoyDEV.mobileprovision (98%)
INFO [2016-01-02 14:43:27.43]: > rewrite profiles/development/Development_com.whatsahoy.AhoyRC.mobileprovision (98%)
INFO [2016-01-02 14:43:27.43]: $ git push origin master
INFO [2016-01-02 14:43:29.31]: > Counting objects: 19, done.
INFO [2016-01-02 14:43:29.31]: > Delta compression using up to 8 threads.
INFO [2016-01-02 14:43:29.31]: > Compressing objects: 100% (18/18), done.
INFO [2016-01-02 14:43:29.31]: > Writing objects: 100% (19/19), 53.16 KiB | 0 bytes/s, done.
INFO [2016-01-02 14:43:29.31]: > Total 19 (delta 2), reused 0 (delta 0)
INFO [2016-01-02 14:43:30.20]: > To git@bitbucket.org:whatsahoy/certificates.git
INFO [2016-01-02 14:43:30.20]: > bc7fe47..46739fe  master -> master
INFO [2016-01-02 14:43:30.21]: Cloning remote git repo...
INFO [2016-01-02 14:43:30.21]: $ git clone 'git@bitbucket.org:whatsahoy/certificates.git' '/var/folders/_z/mdbp6hlj2798z1sbyqjkt9100000gn/T/d20160102-96630-r3me50' --depth 1
INFO [2016-01-02 14:43:30.22]: > Cloning into '/var/folders/_z/mdbp6hlj2798z1sbyqjkt9100000gn/T/d20160102-96630-r3me50'...
INFO [2016-01-02 14:43:32.35]: > remote: Counting objects: 20, done.
INFO [2016-01-02 14:43:32.47]: > remote: Compressing objects: 100% (19/19), done.
INFO [2016-01-02 14:43:32.67]: > remote: Total 20 (delta 0), reused 0 (delta 0)
INFO [2016-01-02 14:43:32.67]: > Receiving objects: 100% (20/20), 53.70 KiB | 0 bytes/s, done.
INFO [2016-01-02 14:43:32.68]: > Checking connectivity... done.
INFO [2016-01-02 14:43:32.71]: 🔓  Decrypted '569WPTQPCX.cer'
INFO [2016-01-02 14:43:32.74]: 🔓  Decrypted 'TD45XZ6PRW.cer'
INFO [2016-01-02 14:43:32.77]: 🔓  Decrypted '569WPTQPCX.p12'
INFO [2016-01-02 14:43:32.80]: 🔓  Decrypted 'TD45XZ6PRW.p12'
INFO [2016-01-02 14:43:32.83]: 🔓  Decrypted 'AppStore_com.whatsahoy.Ahoy.mobileprovision'
INFO [2016-01-02 14:43:32.86]: 🔓  Decrypted 'AppStore_com.whatsahoy.AhoyDEV.mobileprovision'
INFO [2016-01-02 14:43:32.89]: 🔓  Decrypted 'AppStore_com.whatsahoy.AhoyRC.mobileprovision'
INFO [2016-01-02 14:43:32.92]: 🔓  Decrypted 'Development_com.whatsahoy.Ahoy.mobileprovision'
INFO [2016-01-02 14:43:32.95]: 🔓  Decrypted 'Development_com.whatsahoy.AhoyDEV.mobileprovision'
INFO [2016-01-02 14:43:32.98]: 🔓  Decrypted 'Development_com.whatsahoy.AhoyRC.mobileprovision'
INFO [2016-01-02 14:43:32.98]: 🔓  Successfully decrypted certificates repo
INFO [2016-01-02 14:43:33.01]: Verifying that the certificate and profile are still valid on the Dev Portal...
INFO [2016-01-02 14:43:37.53]: Installing certificate...
DEBUG [2016-01-02 14:43:38.38]: Certificate 'TD45XZ6PRW.cer' is already installed on this machine
INFO [2016-01-02 14:43:38.38]: $ security import /var/folders/_z/mdbp6hlj2798z1sbyqjkt9100000gn/T/d20160102-96630-r3me50/certs/distribution/TD45XZ6PRW.p12 -k ~/Library/Keychains/login.keychain -T /usr/bin/codesign -T /usr/bin/security&> /dev/null
INFO [2016-01-02 14:43:39.33]: Installing provisioning profile...
WARN [2016-01-02 14:43:39.44]: Setting environment variable 'sigh_com.whatsahoy.Ahoy_appstore' to '97faf9f7-f4fd-4a5a-a981-9ed1c95ef5d0'

+----------------------+--------------------------------------+
|               Installed Provisioning Profile                |
+----------------------+--------------------------------------+
| App Identifier       | com.whatsahoy.Ahoy                   |
| Type                 | appstore                             |
| UUID                 | 97faf9f7-f4fd-4a5a-a981-9ed1c95ef5d0 |
| Environment Variable | sigh_com.whatsahoy.Ahoy_appstore     |
+----------------------+--------------------------------------+

INFO [2016-01-02 14:43:40.42]: All required keys, certificates and provisioning profiles are installed 🙌
INFO [2016-01-02 14:43:40.42]: 🔒  Successfully encrypted certificates repo

# bartg at bh in ~/Developer/Ahoy/ahoy.ios on git:develop o [14:43:40]
$

jenkins machine:

mini:ahoy.ios.rc jenkins$ match appstore --readonly --verbose

+----------------+----------------------------------------------+
|                    Summary for match 0.2.4                    |
+----------------+----------------------------------------------+
| git_url        | git@bitbucket.org:whatsahoy/certificates.git |
| type           | appstore                                     |
| app_identifier | com.whatsahoy.Ahoy                           |
| username       | bartosz@hernas.pl                            |
| keychain_name  | login.keychain                               |
| readonly       | true                                         |
| team_id        | F696942EFS                                   |
| team_name      | Hernas Limited                               |
| verbose        | true                                         |
| force          | false                                        |
| shallow_clone  | true                                         |
+----------------+----------------------------------------------+

INFO [2016-01-02 14:45:52.20]: Cloning remote git repo...
INFO [2016-01-02 14:45:52.20]: $ git clone 'git@bitbucket.org:whatsahoy/certificates.git' '/var/folders/ht/9f9pgyzn2fnfd7z08xx1p8xw00009c/T/d20160102-15580-r4rcgr' --depth 1
INFO [2016-01-02 14:45:52.25]: > Cloning into '/var/folders/ht/9f9pgyzn2fnfd7z08xx1p8xw00009c/T/d20160102-15580-r4rcgr'...
INFO [2016-01-02 14:45:54.38]: > remote: Counting objects: 20, done.
INFO [2016-01-02 14:45:54.50]: > remote: Compressing objects: 100% (19/19), done.
INFO [2016-01-02 14:45:54.63]: > remote: Total 20 (delta 0), reused 0 (delta 0)
INFO [2016-01-02 14:45:54.63]: > Receiving objects: 100% (20/20), 53.70 KiB | 0 bytes/s, done.
INFO [2016-01-02 14:45:54.65]: > Checking connectivity... done.
WARN [2016-01-02 14:45:54.70]: Enter the passphrase that should be used to encrypt/decrypt your certificates
WARN [2016-01-02 14:45:54.70]: This passphrase is specific per repository and will be stored in your local keychain
WARN [2016-01-02 14:45:54.70]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo: **************************************************
Type passphrase again: **************************************************
security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed.
INFO [2016-01-02 14:45:59.22]: 🔓  Decrypted '569WPTQPCX.cer'
WARN [2016-01-02 14:45:59.25]: Enter the passphrase that should be used to encrypt/decrypt your certificates
WARN [2016-01-02 14:45:59.25]: This passphrase is specific per repository and will be stored in your local keychain
WARN [2016-01-02 14:45:59.25]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo: **************************************************
Type passphrase again: **************************************************
security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed.
INFO [2016-01-02 14:46:00.67]: 🔓  Decrypted 'TD45XZ6PRW.cer'
WARN [2016-01-02 14:46:00.70]: Enter the passphrase that should be used to encrypt/decrypt your certificates
WARN [2016-01-02 14:46:00.70]: This passphrase is specific per repository and will be stored in your local keychain
WARN [2016-01-02 14:46:00.70]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo: **************************************************
Type passphrase again: **************************************************
security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed.
INFO [2016-01-02 14:46:01.90]: 🔓  Decrypted '569WPTQPCX.p12'
WARN [2016-01-02 14:46:01.93]: Enter the passphrase that should be used to encrypt/decrypt your certificates
WARN [2016-01-02 14:46:01.93]: This passphrase is specific per repository and will be stored in your local keychain
WARN [2016-01-02 14:46:01.93]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo: **************************************************
Type passphrase again: **************************************************
security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed.
INFO [2016-01-02 14:46:03.08]: 🔓  Decrypted 'TD45XZ6PRW.p12'
WARN [2016-01-02 14:46:03.12]: Enter the passphrase that should be used to encrypt/decrypt your certificates
WARN [2016-01-02 14:46:03.12]: This passphrase is specific per repository and will be stored in your local keychain
WARN [2016-01-02 14:46:03.12]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo: **************************************************
Type passphrase again: **************************************************
security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed.
INFO [2016-01-02 14:46:04.17]: 🔓  Decrypted 'AppStore_com.whatsahoy.Ahoy.mobileprovision'
WARN [2016-01-02 14:46:04.20]: Enter the passphrase that should be used to encrypt/decrypt your certificates
WARN [2016-01-02 14:46:04.20]: This passphrase is specific per repository and will be stored in your local keychain
WARN [2016-01-02 14:46:04.20]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo: **************************************************
Type passphrase again: **************************************************
security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed.
INFO [2016-01-02 14:46:05.35]: 🔓  Decrypted 'AppStore_com.whatsahoy.AhoyDEV.mobileprovision'
WARN [2016-01-02 14:46:05.38]: Enter the passphrase that should be used to encrypt/decrypt your certificates
WARN [2016-01-02 14:46:05.38]: This passphrase is specific per repository and will be stored in your local keychain
WARN [2016-01-02 14:46:05.38]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo: **************************************************
Type passphrase again: **************************************************
security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed.
INFO [2016-01-02 14:46:06.72]: 🔓  Decrypted 'AppStore_com.whatsahoy.AhoyRC.mobileprovision'
WARN [2016-01-02 14:46:06.75]: Enter the passphrase that should be used to encrypt/decrypt your certificates
WARN [2016-01-02 14:46:06.76]: This passphrase is specific per repository and will be stored in your local keychain
WARN [2016-01-02 14:46:06.76]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo: **************************************************
Type passphrase again: **************************************************
security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed.
INFO [2016-01-02 14:46:07.86]: 🔓  Decrypted 'Development_com.whatsahoy.Ahoy.mobileprovision'
WARN [2016-01-02 14:46:07.89]: Enter the passphrase that should be used to encrypt/decrypt your certificates
WARN [2016-01-02 14:46:07.89]: This passphrase is specific per repository and will be stored in your local keychain
WARN [2016-01-02 14:46:07.89]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo: **************************************************
Type passphrase again: **************************************************
security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed.
INFO [2016-01-02 14:46:09.18]: 🔓  Decrypted 'Development_com.whatsahoy.AhoyDEV.mobileprovision'
WARN [2016-01-02 14:46:09.21]: Enter the passphrase that should be used to encrypt/decrypt your certificates
WARN [2016-01-02 14:46:09.21]: This passphrase is specific per repository and will be stored in your local keychain
WARN [2016-01-02 14:46:09.21]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo: **************************************************
Type passphrase again: **************************************************
security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed.
INFO [2016-01-02 14:46:10.27]: 🔓  Decrypted 'Development_com.whatsahoy.AhoyRC.mobileprovision'
INFO [2016-01-02 14:46:10.27]: 🔓  Successfully decrypted certificates repo
INFO [2016-01-02 14:46:10.27]: Installing certificate...
/uh..e6^[76z8T3pwGsE#gU9rGvZcc]z9G4j6W{UB4jgVz#GL,
DEBUG [2016-01-02 14:46:13.26]: Certificate 'TD45XZ6PRW.cer' is already installed on this machine
INFO [2016-01-02 14:46:13.26]: $ security import /var/folders/ht/9f9pgyzn2fnfd7z08xx1p8xw00009c/T/d20160102-15580-r4rcgr/certs/distribution/TD45XZ6PRW.p12 -k ~/Library/Keychains/login.keychain -T /usr/bin/codesign -T /usr/bin/security&> /dev/null
INFO [2016-01-02 14:46:13.35]: 🔒  Successfully encrypted certificates repo
/usr/local/lib/ruby/gems/2.2.0/gems/fastlane_core-0.31.0/lib/fastlane_core/ui/implementations/shell.rb:110:in `crash!': No matching provisioning profiles found and can not create a new one because you enabled `readonly` (RuntimeError)
    from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane_core-0.31.0/lib/fastlane_core/ui/ui.rb:14:in `method_missing'
    from /usr/local/lib/ruby/gems/2.2.0/gems/match-0.2.4/lib/match/runner.rb:78:in `profile'
    from /usr/local/lib/ruby/gems/2.2.0/gems/match-0.2.4/lib/match/runner.rb:21:in `run'
    from /usr/local/lib/ruby/gems/2.2.0/gems/match-0.2.4/bin/match:52:in `block (3 levels) in run'
    from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
    from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /usr/local/lib/ruby/gems/2.2.0/gems/match-0.2.4/bin/match:108:in `run'
    from /usr/local/lib/ruby/gems/2.2.0/gems/match-0.2.4/bin/match:116:in `<top (required)>'
    from /usr/local/bin/match:23:in `load'
    from /usr/local/bin/match:23:in `<main>'
mini:ahoy.ios.rc jenkins$
fastlanebot commented 8 years ago
@KrauseFx commented
security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed.

Solution in the FAQs https://github.com/fastlane/fastlane/blob/master/docs/FAQs.md#user-interaction-is-not-allowed-when-using-fastlane-via-ssh

fastlanebot commented 8 years ago
@mfurtak commented

Hi @bartoszhernas - I'm going to close this for now. Please let us know if you'd like to continue the conversation :+1:

escapedcat commented 8 years ago

Solution in the FAQs (updated link): https://github.com/fastlane/fastlane/blob/master/fastlane/docs/FAQs.md#user-interaction-is-not-allowed-when-using-fastlane-via-ssh