Uploaded image for project: 'Nuxeo Mobile'
  1. Nuxeo Mobile
  2. NXMOB-342

Fix expired iOS Distribution Provisioning profile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: iOS 1.9
    • Component/s: iOS

      Description

      See https://qa.nuxeo.org/jenkins/view/Mobile/job/Private/job/Mobile/job/nuxeo-mobile-ios-beta/18/consoleFull
      When trying to release an iOS beta, the build fails at the match step with:

      13:35:08 [15:35:07]: -------------------
      13:35:08 [15:35:07]: --- Step: match ---
      13:35:08 [15:35:07]: -------------------
      13:35:08 [15:35:07]: Successfully loaded '/Users/jenkins/tmp/0ebd1d51/workspace/Private/Mobile/nuxeo-mobile-ios-beta/fastlane/Matchfile' 📄
      13:35:08 
      13:35:08 +----------------+-------------------------------------------+
      13:35:08 |        Detected Values from './fastlane/Matchfile'         |
      13:35:08 +----------------+-------------------------------------------+
      13:35:08 | git_url        | git@github.com:nuxeo/ios-certificates.git |
      13:35:08 | shallow_clone  | false                                     |
      13:35:08 | app_identifier | com.nuxeo.mobile.app                      |
      13:35:08 | username       | system@nuxeo.com                          |
      13:35:08 +----------------+-------------------------------------------+
      13:35:08 
      13:35:08 
      13:35:08 +-----------------------+-------------------------------------------+
      13:35:08 |                     Summary for match 2.18.3                      |
      13:35:08 +-----------------------+-------------------------------------------+
      13:35:08 | type                  | appstore                                  |
      13:35:08 | git_url               | git@github.com:nuxeo/ios-certificates.git |
      13:35:08 | shallow_clone         | false                                     |
      13:35:08 | app_identifier        | com.nuxeo.mobile.app                      |
      13:35:08 | username              | system@nuxeo.com                          |
      13:35:08 | git_branch            | master                                    |
      13:35:08 | keychain_name         | login.keychain                            |
      13:35:08 | readonly              | false                                     |
      13:35:08 | team_id               | WCLR6985BX                                |
      13:35:08 | verbose               | false                                     |
      13:35:08 | force                 | false                                     |
      13:35:08 | skip_confirmation     | false                                     |
      13:35:08 | force_for_new_devices | false                                     |
      13:35:08 | skip_docs             | false                                     |
      13:35:08 | platform              | ios                                       |
      13:35:08 +-----------------------+-------------------------------------------+
      13:35:08 
      13:35:08 [15:35:07]: Cloning remote git repo...
      13:35:08 [15:35:08]: 🔓  Successfully decrypted certificates repo
      13:35:08 [15:35:08]: Verifying that the certificate and profile are still valid on the Dev Portal...
      13:35:14 [15:35:13]: Installing certificate...
      13:35:16 [15:35:16]: There are no local code signing identities found.
      13:35:16 You can run `security find-identity -v -p codesigning` to get this output.
      13:35:16 This Stack Overflow thread has more information: https://stackoverflow.com/q/35390072/774.
      13:35:16 (Check in Keychain Access for an expired WWDR certificate: https://stackoverflow.com/a/35409835/774 has more info.)
      13:35:17 
      13:35:17 +-------------------+----------------------------------------------+
      13:35:17 |                      Installed Certificate                       |
      13:35:17 +-------------------+----------------------------------------------+
      13:35:17 | User ID           | WCLR6985BX                                   |
      13:35:17 | Common Name       | iPhone Distribution: NUXEO CORP (WCLR6985BX) |
      13:35:17 | Organisation Unit | WCLR6985BX                                   |
      13:35:17 | Organisation      | NUXEO CORP                                   |
      13:35:17 | Country           | US                                           |
      13:35:17 | Start Datetime    | Apr 13 14:58:55 2016 GMT                     |
      13:35:17 | End Datetime      | Apr 13 14:58:55 2017 GMT                     |
      13:35:17 +-------------------+----------------------------------------------+
      13:35:17 
      13:35:18 [15:35:18]: Certificate '8E43XKWY4U' (stored in your git repo) is not available on the Developer Portal
      13:35:18 [15:35:18]: for the user system@nuxeo.com
      13:35:18 [15:35:18]: Make sure to use the same user and team every time you run 'match' for this
      13:35:18 [15:35:18]: Git repository. This might be caused by revoking the certificate on the Dev Portal
      13:35:18 [15:35:18]: 🔒  Successfully encrypted certificates repo
      13:35:18 +------------------+----------+
      13:35:18 |        Lane Context         |
      13:35:18 +------------------+----------+
      13:35:18 | DEFAULT_PLATFORM | ios      |
      13:35:18 | PLATFORM_NAME    | ios      |
      13:35:18 | LANE_NAME        | ios beta |
      13:35:18 +------------------+----------+
      13:35:18 [15:35:18]: To reset the certificates of your Apple account, you can use the `fastlane match nuke` feature, more information on https://github.com/fastlane/fastlane/tree/master/match
      13:35:18 
      13:35:18 +------+-------------------------------------+-------------+
      13:35:18 |                     fastlane summary                     |
      13:35:18 +------+-------------------------------------+-------------+
      13:35:18 | Step | Action                              | Time (in s) |
      13:35:18 +------+-------------------------------------+-------------+
      13:35:18 | 1    | Verifying required fastlane version | 0           |
      13:35:18 | 2    | default_platform                    | 0           |
      13:35:18 | 3    | unlock_keychain                     | 0           |
      13:35:18 | 4    | npm install                         | 74          |
      13:35:18 | 5    | npm shrinkwrap                      | 4           |
      13:35:18 | 6    | git_add                             | 0           |
      13:35:18 | 7    | cocoapods                           | 3           |
      13:35:18 | 8    | npm run bundle-ios                  | 44          |
      13:35:18 | 💥   | match                               | 10          |
      13:35:18 +------+-------------------------------------+-------------+
      13:35:18 
      13:35:18 [15:35:18]: fastlane finished with errors
      13:35:18 
      13:35:18 [!] To reset the certificates of your Apple account, you can use the `fastlane match nuke` feature, more information on https://github.com/fastlane/fastlane/tree/master/match
      

      This is most certainly because the "match AppStore com.nuxeo.mobile.app" provisioning Profile of type "iOS Distribution" has expired on Apr 13, 2017.
      See https://developer.apple.com/account/ios/profile/

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: