# Fastlane for iOS · Match | raywenderlich.com

**URL:** <https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863>\
**Category:** 🎓 Courses & Articles\
**Created:** [July 31, 2019, 8:02pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863 "2019-07-31T20:02:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian\_bee](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brian_bee/32/110349_2.png) [@brian\_bee](https://forums.kodeco.com/u/brian_bee)\
**Post date:** [July 31, 2019, 8:02pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/1 "2019-07-31T20:02:18Z")

</div>

* * *
This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/1259223-fastlane-for-ios/lessons/13](https://www.raywenderlich.com/1259223-fastlane-for-ios/lessons/13)

---

<div class="post-metadata">

**Author:** ![rehannali](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rehannali/32/84429_2.png) [@rehannali](https://forums.kodeco.com/u/rehannali)\
**Post date:** [August 7, 2019, 12:33pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/2 "2019-08-07T12:33:23Z")

</div>

Hi, I have problem with Adhoc license using match. I got an error for “iCloudContainerEnvironment” key. When I run app store license using match, everything is working fine while export.

---

<div class="post-metadata">

**Author:** ![brian\_bee](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brian_bee/32/110349_2.png) [@brian\_bee](https://forums.kodeco.com/u/brian_bee)\
**Post date:** [August 7, 2019, 10:44pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/3 "2019-08-07T22:44:53Z")

</div>

I haven’t personally encountered this kind of issue, but `fastlane` support shows this has been an issue for some people. It looks like the problem usually boils down to having a mismatch between the environment selected (say, “development”) and the type of action being required (e.g., “app store”). That said, I can’t find any references at all to people having this problem when running `match` (every support issue I could find for this was related to another `fastlane` tool called `gym`, which we cover in Section 3).

Can you check to make sure that you nuked your existing Certificates and then try running `fastlane match adhoc` once again? If the problem persists, I’ll be happy to work with you in submitting an issue to the fastlane team, which is typically quite responsive and helpful!

---

<div class="post-metadata">

**Author:** ![rehannali](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rehannali/32/84429_2.png) [@rehannali](https://forums.kodeco.com/u/rehannali)\
**Post date:** [August 8, 2019, 4:55am UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/4 "2019-08-08T04:55:03Z")

</div>

Thank you for swift response.

I tried many times even after nuke. “iCloudContainerEnvironment” didn’t include automatically for Adhoc but it works flawlessly with AppStore.

I saw my cert in developers portal and it does include iCloud value in cert.

---

<div class="post-metadata">

**Author:** ![brian\_bee](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brian_bee/32/110349_2.png) [@brian\_bee](https://forums.kodeco.com/u/brian_bee)\
**Post date:** [August 8, 2019, 9:17pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/5 "2019-08-08T21:17:21Z")

</div>

Hmmm… I know this is a bit redundant, but just to confirm, this happens when you run `fastlane match adhoc`, but both `fastlane match development` and `fastlane match App Store` work as expected for you?

---

<div class="post-metadata">

**Author:** ![rehannali](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rehannali/32/84429_2.png) [@rehannali](https://forums.kodeco.com/u/rehannali)\
**Post date:** [August 9, 2019, 4:23am UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/6 "2019-08-09T04:23:15Z")

</div>

Yes, for me i only happened when i run `fastlane match adhoc` and then build with adhoc.

---

<div class="post-metadata">

**Author:** ![brian\_bee](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brian_bee/32/110349_2.png) [@brian\_bee](https://forums.kodeco.com/u/brian_bee)\
**Post date:** [August 9, 2019, 4:45pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/7 "2019-08-09T16:45:59Z")

</div>

That might point us in a direction I can help with. When you say “…and then **build** with adhoc”, do you mean using `gym`? Specifically, it sounds like maybe the command `fastlane match adhoc` doesn’t throw this error in itself, but rather that you get this error when you invoke `gym`. Is that right?

---

<div class="post-metadata">

**Author:** ![rehannali](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rehannali/32/84429_2.png) [@rehannali](https://forums.kodeco.com/u/rehannali)\
**Post date:** [August 10, 2019, 5:41am UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/8 "2019-08-10T05:41:42Z")

</div>

Yes, You are right. I got error when build with adhoc using gym.

I’m unable to add another reply so i’m adding comments for below post.

Hi, I appreciate your efforts and swift response. I already tried it but the problem is after using manual `export_options` it overrides `match` settings.

I also read in documentation if you are using `match` you don’t need to mention `export_options`.

---

<div class="post-metadata">

**Author:** ![brian\_bee](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brian_bee/32/110349_2.png) [@brian\_bee](https://forums.kodeco.com/u/brian_bee)\
**Post date:** [August 10, 2019, 7:03pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/9 "2019-08-10T19:03:10Z")

</div>

Great! Now that I know this issue occurs with `gym` I think we can resolve your issue. 🙂

If you do some web searching, you can find several people reporting issues using `gym` with ad hoc certificates. Here’s 2 examples:

> <https://github.com/fastlane/fastlane/issues/12044>
>
> 2018-03-13 16:25:58.609 xcodebuild\[83056:8372622\] \[MT\] IDEDistribution: -\[IDEDis…tributionLogging \_createLoggingBundleAtPath:\]: Created bundle at path
> '/var/folders/xs/f4xsj2d53mz4jljhvccfhkrc0000gn/T/Reader2\_2018-03-13\_16-25-58.607.xcdistributionlogs'.
> 2018-03-13 16:25:59.588 xcodebuild\[83056:8372622\] \[MT\] IDEDistribution: Step failed: \<IDEDistributionOptionsStep: 0x7fac40a71220\>: Error Domain=IDEFo$
> ndationErrorDomain Code=1 "exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was
> provided" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, $
> ut no value was provided}
> error: exportArchive: exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was prov$
> ded
> 
> Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production$
> , but no value was provided" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Develop$
> ent, Production}, but no value was provided}
> 
> \*\* EXPORT FAILED \*\*
> \[16:25:59\]: Exit status: 70
> 
> 
> https://imgur.com/a/mgdw4
> 
> \`\`\`
> my fastlane file is 
> 
> https://fabric.io/features/distribution
> \`\`\`
> 
> upload to testfight is okay but fail to fabric

> <https://github.com/fastlane/fastlane/issues/9380>
>
> Currently, it seems like Xcode 9.0 beta version is not supported:
> 
> \> 2017-06-0…6 14:02:41.579 xcodebuild\[36176:463668\] \[MT\] IDEDistribution: Step failed: \<IDEDistributionSigningAssetsStep: 0x7fff3691e600\>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
> \> "Error Domain=IDEProvisioningErrorDomain Code=9 \\"\\"FoodTracker.app\\" requires a provisioning profile.\\" UserInfo={NSLocalizedDescription=\\"FoodTracker.app\\" requires a provisioning profile., NSLocalizedRecoverySuggestion=Select a provisioning profile for the \\"Default\\" build configuration in the project editor.}"
> \> )}
> \> error: exportArchive: "FoodTracker.app" requires a provisioning profile.
> \> 
> \> Error Domain=IDEProvisioningErrorDomain Code=9 ""FoodTracker.app" requires a provisioning profile." UserInfo={NSLocalizedDescription="FoodTracker.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Select a provisioning profile for the "Default" build configuration in the project editor.}
> 
> Provisioning profile is set correctly. If I do \`xcode-select -s\` to Xcode 8.3.2, it finishes without a problem.
> 
> \*\* EXPORT FAILED \*\*
> \[14:02:41\]: Exit status: 70
> 
> \<details\>\<summary\>✅ fastlane environment ✅\</summary\>
> 
> \### Stack
> 
> | Key | Value |
> | --------------------------- | ------------------------------------------------ |
> | OS | 10.12.4 |
> | Ruby | 2.2.4 |
> | Bundler? | false |
> | Git | git version 2.12.2 |
> | Installation Source | ~/.fastlane/bin/bundle/bin/fastlane |
> | Host | Mac OS X 10.12.4 (16E195) |
> | 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-beta.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:
> 
> \*\*No Fastfile found\*\*
> 
> 
> \*\*No Appfile found\*\*
> 
> 
> \### fastlane gems
> 
> | Gem | Version | Update-Status |
> | -------- | ------- | ------------- |
> | fastlane | 2.37.0 | ✅ Up-To-Date |
> 
> 
> \### Loaded fastlane plugins:
> 
> \*\*No plugins Loaded\*\*
> 
> 
> \<details\>\<summary\>\<b\>Loaded gems\</b\>\</summary\>
> 
> | Gem | Version |
> | ------------------------- | ------------ |
> | slack-notifier | 1.5.1 |
> | CFPropertyList | 2.3.5 |
> | claide | 1.0.1 |
> | colored2 | 3.1.2 |
> | nanaimo | 0.2.3 |
> | xcodeproj | 1.4.4 |
> | 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.4 |
> | 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 |
> | uber | 0.0.15 |
> | representable | 2.3.0 |
> | retriable | 2.1.0 |
> | mime-types-data | 3.2016.0521 |
> | mime-types | 3.1 |
> | hurley | 0.2 |
> | little-plugger | 1.1.4 |
> | multi\_json | 1.12.1 |
> | 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.9.28 |
> | json | 1.8.1 |
> | mini\_magick | 4.5.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 |
> \</details\>
> 
> 
> \*generated on:\* \*\*2017-06-06\*\*
> \</details\>

Generally, the resolution of your issue comes down to providing `gym` a bit more information, so it can correctly select the right assets to use. Specifically, I’d suggest adding this to your `ad hoc` `gym` command:

```auto
gym(
  …
  export_method: "ad-hoc",
  export_options: {iCloudContainerEnvironment: 'Production']}
) 

```

As usual, you can dig a bit deeper and learn more about how to tune `gym` via its [documentation page](https://docs.fastlane.tools). Good luck!

---

<div class="post-metadata">

**Author:** ![sarbogast](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sarbogast/32/82236_2.png) [@sarbogast](https://forums.kodeco.com/u/sarbogast)\
**Post date:** [August 26, 2019, 8:57pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/10 "2019-08-26T20:57:51Z")

</div>

So, I would like to follow your best practice of creating a separate Apple ID to use with match, and I can’t nuke all the certificate on my existing Apple ID anyway because I’m using it for a bunch of other projects in which I haven’t integrated Fastlane yet. But does that mean I should also take a separate iOS developer subscription for that separate Apple ID too?

---

<div class="post-metadata">

**Author:** ![brian\_bee](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brian_bee/32/110349_2.png) [@brian\_bee](https://forums.kodeco.com/u/brian_bee)\
**Post date:** [August 26, 2019, 9:44pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/11 "2019-08-26T21:44:39Z")

</div>

Great question. I think in your case, the answer’s more nuanced than a simple yes or no. If you had access to a team account, then I’d absolutely advise created a new use account under that. And again, If you didn’t have the investment in your non-`match` certs, it’d again be a no-brainer. But the choice isn’t as simple or clear in your situation, where you can’t simply nuke your existing code-signing assets.

Generally, the main reasons to nuke existing certs in a personal account is to keep things clean and simple, and to ensure that you don’t develop subtle problems in which, say, a personal certificate might mask your `match` certificate. But if you don’t run `nuke`, it doesn’t necessarily mean that you will have problems – just that you might, and that you’ll likely need to exercise more awareness of which signing assets are doing what.

So long as you don’t mind keeping a tighter eye on these things, I’d probably suggest trying using `match` with your existing account, of course keeping your existing certs in place. Odds are decent that everything will just work. If you do run into problems, you can always work with `fastlane` support to resolve, or decide then if it’s worth creating and paying for a separate account.

Hope that helps…

---

<div class="post-metadata">

**Author:** ![sarbogast](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sarbogast/32/82236_2.png) [@sarbogast](https://forums.kodeco.com/u/sarbogast)\
**Post date:** [August 26, 2019, 10:40pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/12 "2019-08-26T22:40:25Z")

</div>

OK thanks. Another question though: what is this technicality you mentioned that prevented fastlane to prompt you from a passphrase? Because I made a mistake when running match the first time: I thought it was asking for my Github password and so I used my Github password as an encryption passphrase. So I tried to reset everything so that it asks me for the passphrase again but it doesn’t anymore. So how can I reset this stored password so that I can use one specific to this?

---

<div class="post-metadata">

**Author:** ![sarbogast](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sarbogast/32/82236_2.png) [@sarbogast](https://forums.kodeco.com/u/sarbogast)\
**Post date:** [August 27, 2019, 8:49pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/13 "2019-08-27T20:49:56Z")

</div>

I figured it out thanks to the documentation. All I had to do was to run the following command:

`fastlane match change_password`

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [September 6, 2019, 2:37am UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/14 "2019-09-06T02:37:40Z")

</div>

@sarbogast Really glad you fixed it! Cheers! :]

---

<div class="post-metadata">

**Author:** ![cyrusjayson](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/cyrusjayson/32/81494_2.png) [@cyrusjayson](https://forums.kodeco.com/u/cyrusjayson)\
**Post date:** [September 26, 2019, 11:38am UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/15 "2019-09-26T11:38:01Z")

</div>

```
"type"<uint32>=<NULL>

```

password has been deleted.  
[13:36:28]: Enter the passphrase that should be used to encrypt/decrypt your certificates  
[13:36:28]: This passphrase is specific per repository and will be stored in your local keychain  
[13:36:28]: Make sure to remember the password, as you’ll need it when you run match on a different machine  
[13:36:28]: Passphrase for Git Repo:

I am stuck on this error. help

---

<div class="post-metadata">

**Author:** ![cyrusjayson](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/cyrusjayson/32/81494_2.png) [@cyrusjayson](https://forums.kodeco.com/u/cyrusjayson)\
**Post date:** [September 26, 2019, 11:39am UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/16 "2019-09-26T11:39:11Z")

</div>

@brian_bee I am stuck at fastlane match development. help please

```
"type"<uint32>=<NULL>

```

password has been deleted.  
[13:36:28]: Enter the passphrase that should be used to encrypt/decrypt your certificates  
[13:36:28]: This passphrase is specific per repository and will be stored in your local keychain  
[13:36:28]: Make sure to remember the password, as you’ll need it when you run match on a different machine  
[13:36:28]: Passphrase for Git Repo:

---

<div class="post-metadata">

**Author:** ![brian\_bee](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brian_bee/32/110349_2.png) [@brian\_bee](https://forums.kodeco.com/u/brian_bee)\
**Post date:** [September 27, 2019, 5:27pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/17 "2019-09-27T17:27:47Z")

</div>

There’s a lot I can’t tell about your local, git, and fastlane environments and the specific commands/lanes you’re running from your comment. But based on what you have reported, it appears you’re likely encountering an edge case that was [reported last year](https://github.com/fastlane/fastlane/issues/13963) and reported as [resolved in a subsequent update](https://github.com/fastlane/fastlane/pull/13983). The specific fastlane command that prompted the error was `fastlane match change_password`

Interestingly, I do also find a newer issue where a user [reports a very similar issue](https://github.com/fastlane/fastlane/issues/15198). However, this time, the issue was closed without any change to code. Happily, the exchange between the poster and fastlane team member points the way to a potential solution:

> I think this is happening when the certificate repo is empty.
> 
> > That would make sense, probably nobody even checked that to be honest as the password encrypts individual files … [but] how we should actually fix this? Should it exit with a “your repo is empty, no password set yet to change” warning early or should we let you input everything as right now and then just not crash as it does right now?

I’d suggest (a) making sure that you’re running the current version of fastlane, and then (b) taking a look at these posts to see if the empty repo case described matches your case. Let me know how that goes, and I’ll be happy to do what I can to help from there. Good luck!

---

<div class="post-metadata">

**Author:** ![cyrusjayson](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/cyrusjayson/32/81494_2.png) [@cyrusjayson](https://forums.kodeco.com/u/cyrusjayson)\
**Post date:** [September 30, 2019, 2:23pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/18 "2019-09-30T14:23:36Z")

</div>

Thanks @brian_bee I fixed it. Please check another post I did because I am stuck at build and packaging lesson

---

<div class="post-metadata">

**Author:** ![hackchildinc](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hackchildinc/32/110891_2.png) [@hackchildinc](https://forums.kodeco.com/u/hackchildinc)\
**Post date:** [February 16, 2021, 6:27pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/19 "2021-02-16T18:27:37Z")

</div>

Hi, I cannot seem to get anything in your tutorials to work. Fastlane keeps telling me that i don’t know my own password. I am on Part 2: Episode 13.

I am running `fastlane match nuke development`

And then it’s asking me to sign into my github, which I am doing. Then the response says …

```auto
[!] The request could not be completed because:
	Invalid username and password combination. Used 'madeofmoney' as the username.

```

I’ve manually logged out and logged back into github 10 times with the same credentials. Please help.

---

<div class="post-metadata">

**Author:** ![brian\_bee](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brian_bee/32/110349_2.png) [@brian\_bee](https://forums.kodeco.com/u/brian_bee)\
**Post date:** [February 16, 2021, 8:52pm UTC](https://forums.kodeco.com/t/fastlane-for-ios-match-raywenderlich-com/77863/20 "2021-02-16T20:52:58Z")

</div>

Sorry to hear that.

I can’t tell you why the login isn’t working, but one common thing that can cause issues with GitHub login is 2 factor authentication, so you might check your GitHub account settings. If that doesn’t help, you might next running the commands that aren’t working using the `verbose` tag.

More generally: The most important thing is to make sure you understand exactly which step is failing and which component(s) are involved: Are you positive this message is coming from GitHub? (Running the commands with `verbose` should help you double check this). If so, I’d dig in and explore what’s happening with GitHub – are you able to connect via the command line at all? Can you read only or write as well?

Sorry I can’t be more specific from a distance. The good news(!) here is that these are exactly the kinds of blockers you’ll encounter with automation tools in production situations. I know it can feel horrible when seemingly straightforward tutorial steps don’t “just work”, but isolating and resolving this issue can be a learning experience in itself. Good luck!
