# Provisioning Profile installed, but missing

**URL:** <https://discuss.bitrise.io/t/provisioning-profile-installed-but-missing/3739>\
**Category:** Builds\
**Tags:** fastlane, ios\
**Created:** [January 12, 2018, 3:01pm UTC](https://discuss.bitrise.io/t/provisioning-profile-installed-but-missing/3739 "2018-01-12T15:01:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pl-joseglego](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/pl-joseglego/32/1044_2.png) [@pl-joseglego](https://discuss.bitrise.io/u/pl-joseglego)\
**Post date:** [January 12, 2018, 3:01pm UTC](https://discuss.bitrise.io/t/provisioning-profile-installed-but-missing/3739/1 "2018-01-12T15:01:17Z")

</div>

## Description of the issue

I’m trying to deploy my app to AppStore & PlayStore. I’m using fastlane-match for signing profile, and the step ends without problem and with a successfully message. But in the next step, the cordova-achive says I’m missing the provisioning profile.

I’m using fastlane match (`fastlane-match@0.1.0`) for signing profile, the step ends successfully

```auto
[14:32:52]: All required keys, certificates and provisioning profiles are installed 🙌
Success

```

But, the next step cordova-achirve (`cordova-archive@1.0.1`) can’t find the provisioning profile, throw an error and ends like this:

```auto
2018-01-11 14:34:47.820 xcodebuild[6746:20396] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fa1aefa8070>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
    "Error Domain=IDEProvisioningErrorDomain Code=9 \"\"Cloudponics.app\" requires a provisioning profile.\" UserInfo={NSLocalizedDescription=\"Cloudponics.app\" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the \"provisioningProfiles\" dictionary in your Export Options property list.}"
)}
error: exportArchive: "Cloudponics.app" requires a provisioning profile.
Error Domain=IDEProvisioningErrorDomain Code=9 ""Cloudponics.app" requires a provisioning profile." UserInfo={NSLocalizedDescription="Cloudponics.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}
**EXPORT FAILED**
Error: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,Cloudponics.xcarchive,-exportOptionsPlist,/Users/vagrant/git/platforms/ios/exportOptions.plist,-exportPath,/Users/vagrant/git/platforms/ios/build/device
cordova failed, error: exit status 1

```

## Environment:

**Where did the issue happen?**

Xamarin, Visual Studio for Mac, Stable channel, on macOS, a.k.a.: osX - vs4mac - stable  
details: [https://github.com/bitrise-io/bitrise.io/blob/master/system\_reports/osx-vs4mac-stable.log](https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-vs4mac-stable.log)

**Which build Step causes the issue and which version of the step?**

cordova-archive@1.0.1

## Reproducibility

- Rebuild doesn’t work, even without cache.
- It happens every time
- It’s in the latest version
- After include iOS in the build. It use to work when I was working only with Android

### Local reproduction

I can’t reproduce local

## Build log

> **[Log in - Bitrise](https://app.bitrise.io/users/sign_in)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 12, 2018, 3:26pm UTC](https://discuss.bitrise.io/t/provisioning-profile-installed-but-missing/3739/2 "2018-01-12T15:26:18Z")

</div>

Hi @pl-joseglego,

> [@pl-joseglego](#):
>
> I’m using fastlane match (fastlane-match@0.1.0) for signing profile, the step ends successfully

All that means is that the signing files you have in your `match` repo were installed. It does not mean that all required signing files are present. Match itself does not check anything, it just installs the Cert & Profiles you store in its repo.

> [@pl-joseglego](#):
>
> But, the next step cordova-achirve (cordova-archive@1.0.1) can’t find the provisioning profile, throw an error and ends like this:

> [@pl-joseglego](#):
>
> error: exportArchive: “Cloudponics.app” requires a provisioning profile.

This exactly means that you either don’t have the required export (App Store) prov profile & cert in your match repo, or that you did not specify which one should be used in your Cordova `build.json`.

You can either generate the `build.json` yourself ([iOS Platform Guide - Apache Cordova](https://cordova.apache.org/docs/en/latest/guide/platforms/ios/#using-buildjson)) and e.g. store it in your repository or alternatively you can use our **Generate cordova build configuration** to let it generate the `build.json` for you, based on the inputs you provide.

In either case I’d suggest you to run the build locally with our CLI to check that the build config is correct ([How to experiment with Bitrise configs locally, on your Mac/Linux](http://discuss.bitrise.io/t/how-to-experiment-with-bitrise-configs-locally-on-your-mac-linux/1751)).

If you’d have any questions just let us know! 🙂

---

<div class="post-metadata">

**Author:** ![pl-joseglego](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/pl-joseglego/32/1044_2.png) [@pl-joseglego](https://discuss.bitrise.io/u/pl-joseglego)\
**Post date:** [January 12, 2018, 5:31pm UTC](https://discuss.bitrise.io/t/provisioning-profile-installed-but-missing/3739/3 "2018-01-12T17:31:55Z")

</div>

Hi @viktorbenei,

You’re right it could be related to a missing cert or profile in my repo. And it’s totally possible. But it wasn’t the case.

We found a lot of people with the similar problem  
[http://ioscake.com/after-upgrading-to-xcode-9-cordova-app-wont-build-error-70-requires-provisioning-profile.html](http://ioscake.com/after-upgrading-to-xcode-9-cordova-app-wont-build-error-70-requires-provisioning-profile.html)

So, we ran again, but we move to another stack :  
Hybrid stack, with both Android tools and Xcode 8  
details: [https://github.com/bitrise-io/bitrise.io/blob/master/system\_reports/osx-xamarin-stable.log](https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-xamarin-stable.log)

And it works 😃

Thanks!

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 16, 2018, 7:57pm UTC](https://discuss.bitrise.io/t/provisioning-profile-installed-but-missing/3739/4 "2018-01-16T19:57:16Z")

</div>

> [@pl-joseglego](#):
>
> So, we ran again, but we move to another stack :
> 
> Hybrid stack, with both Android tools and Xcode 8

Ahh, indeed, I believe Cordova has issues with Xcode 9 (code signing config changes introduced in Xcode 9 were not supported initially) and you most likely used an Xcode 9 stack initially, then switch to an Xcode 8 stack.

AFAIK Cordova should work with Xcode 9 just fine but the code signing config requires some tweaking / changing due to the related changes introduced in Xcode 9 (requires more info for code signing, the same params which worked with Xcode 8 usually don’t work with Xcode 9…).

Anyway, happy to hear you found a solution - let us know if you’d have any questions! 😉  
Happy Building!
